From 37cb574427d46b688bc8d14e6b979af4e19da61a Mon Sep 17 00:00:00 2001 From: Martin Date: Wed, 17 Jul 2024 10:20:17 +0200 Subject: [PATCH] Update workflow actions and add test step to publish --- .github/workflows/linux.yml | 4 ++-- .github/workflows/mac.yml | 4 ++-- .github/workflows/publish.yml | 10 ++++++---- .github/workflows/windows.yml | 4 ++-- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index d72f7984..bba3f823 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -17,9 +17,9 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Dotnet - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: global.json - name: Build diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index e9faa411..c768f493 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -17,9 +17,9 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Dotnet - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: global.json - name: Build diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e1d2e001..7ea08344 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,9 +14,9 @@ jobs: runs-on: windows-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Dotnet - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: global.json - name: Restore Tools @@ -26,12 +26,14 @@ jobs: - name: Build shell: cmd run: dotnet build -c Release src\Aardvark.Algodat.sln + - name: Test + run: dotnet test src\Aardvark.Algodat.sln -c Release --no-build --nologo --logger:"console;verbosity=normal" - name: Pack env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: dotnet aardpack src\Aardvark.Algodat.sln --notag + run: dotnet aardpack src\Aardvark.Algodat.sln --notag --skip-build - name: Upload Packages - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: packages path: bin\pack diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index a3a0af0d..5013777c 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -17,9 +17,9 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Dotnet - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: global.json - name: build