- added a file rename plugin #374
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Test | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [ main ] | |
paths: | |
- src/** | |
- tests/** | |
- .github/workflows/nox_ci.yaml | |
push: | |
branches: [ main ] | |
paths: | |
- src/** | |
- tests/** | |
- .github/workflows/nox_ci.yaml | |
permissions: | |
id-token: write | |
contents: read | |
checks: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dotnet-version: ['8.0.x'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }} | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
- name: Restore | |
run: dotnet restore ./src/Nox.Cli.sln | |
- name: Build | |
run: dotnet build ./src/Nox.Cli.sln --warnaserror --configuration Release --no-restore | |
- name: Test | |
run: dotnet test ./src/Nox.Cli.sln --configuration Release --no-restore --verbosity minimal --logger "trx;LogFileName=test-results.trx" | |
- name: Publish Test Report | |
uses: dorny/test-reporter@v1 | |
if: ${{ always() }} | |
with: | |
name: Tests Results | |
path: "**/test-results.trx" | |
reporter: dotnet-trx | |
fail-on-error: true |