Skip to content

Milestone 0.6 release train #306

Milestone 0.6 release train

Milestone 0.6 release train #306

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET Build
on:
push:
branches: [ "main" ]
paths:
- 'SharpSite.*/**'
pull_request:
branches: [ "*" ]
paths:
- 'SharpSite.*/**'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Run Tests
run: dotnet test UnitTests.slnf --no-build --logger trx
- name: Report test results
uses: actions/upload-artifact@v3
with:
name: test-results
path: '**/*.trx'
cleanup:
runs-on: ubuntu-latest
needs: [test]
if: always()
steps:
- name: Clean up build artifacts
run: rm -rf **/bin/**
- name: Clean up test artifacts
run: rm -rf **/*.trx