Merge pull request #35 from sguryev/serj/main-snake-test #117
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: CI | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
concurrency: | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: build and test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.x | |
7.x | |
8.x | |
- name: dotnet build | |
run: dotnet build | |
- name: dotnet test | |
run: dotnet test --no-build --no-restore --logger "junit;LogFilePath=unit-tests.xml" | |
- name: publish test results | |
uses: EnricoMi/publish-unit-test-result-action@v1 | |
if: always() | |
with: | |
files: "**/*-tests.xml" | |
check_name: "Unit Test Results" |