chore(deps): update dependency nunit to 4.3.0 #1049
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: | |
branches: | |
- '**' | |
env: | |
DOTNET_NOLOGO: true | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test-java: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: build | |
shell: pwsh | |
run: ./tools/build-java.ps1 | |
test-dotnet: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 15 | |
strategy: | |
# fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
# - macos-latest Doesn't work yet | |
- windows-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 | |
with: | |
path: ~/.nuget/packages | |
# Look to see if there is a cache hit for the corresponding requirements file | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
- uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 # v4.1.0 | |
with: | |
dotnet-version: | | |
6 | |
8 | |
dotnet-quality: ga | |
- name: prepare | |
run: dotnet restore | |
- name: tfm | |
# building net461 doesn't work on non windows | |
if: matrix.os != 'windows-latest' | |
run: echo "NoNet4=true" >> $GITHUB_ENV | |
- name: build | |
run: dotnet build --no-restore | |
- name: test | |
run: dotnet test --no-build | |
- name: Codecov | |
uses: codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e # v5.1.1 | |
with: | |
files: '**/TestResults/*/*.cobertura.xml' | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} | |
build: | |
runs-on: windows-latest | |
timeout-minutes: 15 | |
needs: [test-java, test-dotnet] | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 | |
with: | |
path: ~/.nuget/packages | |
# Look to see if there is a cache hit for the corresponding requirements file | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
- name: prepare | |
run: dotnet restore | |
- name: build | |
run: dotnet build --no-restore -c Release | |
- name: pack | |
run: dotnet pack --no-build -o bin -c Release | |
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
with: | |
name: packages | |
path: bin/*.nupkg |