chore(test deps): update testing dependencies #2766
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: .NET Testing | |
on: | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
test: | |
name: Test (.NET ${{ matrix.version }}) | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
version: | |
- 6.x | |
- 7.x | |
- 8.x | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bufbuild/buf-setup-action@v1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: extractions/setup-just@v1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ matrix.version }} | |
- name: Setup dotnet tools | |
run: dotnet tool restore | |
- name: Generate gRPC code | |
run: just generate-grpc | |
- name: Test | |
run: dotnet test --configuration Release | |
result: | |
if: ${{ always() }} | |
runs-on: ubuntu-latest | |
name: Results | |
needs: [ test ] | |
steps: | |
- run: | | |
result="${{ needs.test.result }}" | |
if [[ $result == "success" || $result == "skipped" ]]; then | |
exit 0 | |
else | |
exit 1 | |
fi |