CI: Setup dotnet SDK before running automatic build
Some checks failed
/ build (push) Failing after 47s

This commit is contained in:
Konstantin Hintermayer
2025-05-14 21:56:48 +02:00
parent d967449889
commit bd038ab691
2 changed files with 20 additions and 1 deletions

View File

@ -13,8 +13,25 @@ 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
- name: PWD
run: pwd
- name: LS
run: ls -lisa
- name: change into building directory
run: cd Module.EventRegistration
- name: Setup Dotnet SDK
uses: https://github.com/actions/setup-dotnet@v4
with:
dotnet-version: '9.x'
- name: Build
run: dotnet build --configuration Release
- name: Test

View File

@ -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