Merge pull request #89 from clickviewapp/dependabot/nuget/StackExchan… #151
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 and Test | |
on: | |
push: | |
#paths-ignore: | |
#- ".github/workflows/**" | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: '6.0.x' | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Restore | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Test | |
run: dotnet test --no-build --logger trx --results-directory ./test-results/ | |
- name: Upload test results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Test Results | |
path: ./test-results/ | |
# Use always() to always run this step to publish test results when there are test failures | |
if: ${{ always() }} |