Update README.md #61
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: Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
schedule: | |
- cron: '0 0 * * 6' | |
workflow_dispatch: | |
jobs: | |
Test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Install GitVersion | |
uses: GitTools/actions/gitversion/setup@v0.9.11 | |
with: | |
versionSpec: '5.5.0' | |
- name: Setup .NET Core SDK '3.1.x' | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: '3.1.x' | |
include-prerelease: true | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Run GitVersion | |
id: gitversion | |
uses: GitTools/actions/gitversion/execute@v0.9.11 | |
- name: Echo version | |
run: echo ${{ steps.gitversion.outputs.majorMinorPatch }} | |
- name: Setup .NET Core SDK '9.x.x' | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: '9.x.x' | |
include-prerelease: true | |
- name: Update project version | |
uses: roryprimrose/set-vs-sdk-project-version@v1 | |
with: | |
version: ${{ steps.gitversion.outputs.majorMinorPatch }} | |
- name: Display dotnet version | |
run: dotnet --version | |
- name: Install Dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
- name: Test with dotnet | |
run: dotnet test --no-restore --verbosity normal --logger trx --results-directory "TestResults" | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() # run this step even if previous step failed | |
with: | |
name: Tests # Name of the check run which will be created | |
path: TestResults/*.trx # Path to test results | |
reporter: dotnet-trx # Format of test results |