Skip to content

Bump actions/cache from 5.0.5 to 6.1.0 #52

Bump actions/cache from 5.0.5 to 6.1.0

Bump actions/cache from 5.0.5 to 6.1.0 #52

Workflow file for this run

name: .NET Unit Tests
on:
pull_request:
jobs:
dotnet-test:
# ↓ Change this to "false" to disable the workflow without any alert messages.
if: ${{ true }}
# ↑ Change to "true" (or delete) to enable the workflow.
name: Run unit tests
runs-on: windows-latest
permissions:
contents: read
steps:
- name: Check out repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Set up .NET
uses: actions/setup-dotnet@9a946fdbd5fb07b82b2f5a4466058b876ab72bb2
with:
global-json-file: global.json
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal --report-spekt-nunit
- name: Upload test result artifacts
if: ${{ !cancelled() }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
path: _artifacts/bin/**/debug/TestResults/TestResults.xml
publish-test-results:
name: Publish test results
needs: dotnet-test
runs-on: ubuntu-latest
if: ${{ !cancelled() }}
permissions:
checks: write
pull-requests: write
steps:
- name: Download test result artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
with:
path: test-results # destination folder
- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@d0a4676d0e0b938bc201470d88276b7c74c712b3
with:
files: test-results/**/TestResults.xml