From 820d42a2469572c5d4118393b008f33caf8c4998 Mon Sep 17 00:00:00 2001 From: Konstantin Hintermayer Date: Wed, 14 May 2025 21:56:48 +0200 Subject: [PATCH] CI: Setup dotnet SDK before running automatic build --- .gitea/workflows/ci.yml | 20 +++++++++++++++++--- .gitea/workflows/release.yml | 2 ++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index d950e2b..316258d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -13,9 +13,23 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 steps: - - name: Checkout + - name: Checkout Module uses: https://github.com/actions/checkout@v4 + with: + path: Module.EventRegistration + - name: Checkout Oqtane + uses: https://github.com/actions/checkout@v4 + with: + repository: Diplomarbeit-Absolventenverein/oqtane.framework + path: oqtane.framework + ref: dev + - name: Setup Dotnet SDK + uses: https://github.com/actions/setup-dotnet@v4 + with: + dotnet-version: '9.x' + - name: LS + run: ls -lisa - name: Build - run: dotnet build --configuration Release + run: dotnet build ./Module.EventRegistration/SZUAbsolventenverein.Module.EventRegistration.sln --configuration Release - name: Test - run: dotnet test --configuration Release --no-build \ No newline at end of file + run: dotnet test ./Module.EventRegistration/SZUAbsolventenverein.Module.EventRegistration.sln --configuration Release --no-build \ No newline at end of file diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 065b80e..95bfc12 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -19,6 +19,8 @@ jobs: git branch --remote --contains | grep origin/main - name: Set VERSION variable from tag run: echo "VERSION=${GITEA_REF/refs\/tags\/v/}" >> $GITEA_ENV + - name: Setup Dotnet SDK + uses: https://github.com/actions/setup-dotnet@v4 - name: Build run: dotnet build --configuration Release /p:Version=${VERSION} - name: Test