Skip to content

Bump actions/upload-artifact from 4 to 6 #95

Bump actions/upload-artifact from 4 to 6

Bump actions/upload-artifact from 4 to 6 #95

Workflow file for this run

name: Build and Test
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
workflow_dispatch:
jobs:
Build-Test:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch all history
run: |
git fetch --prune
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Debug build
run: |
msbuild -verbosity:minimal -t:Rebuild -restore -p:Configuration=Debug
- name: Unit tests
run: |
dotnet test Tests --logger trx --results-directory "TestResults"
- name: Upload dotnet test results
uses: actions/upload-artifact@v6
with:
name: dotnet-results
path: TestResults
# Always run this step, even when there are test failures
if: ${{ always() }}
- name: Release build
run: |
msbuild -verbosity:minimal -t:Rebuild -restore -p:Configuration=Release