Add workload restore to admin ci #2
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: Admin - CI | |
on: | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- .github/settings.yml | |
workflow_dispatch: | |
jobs: | |
build_and_test: | |
name: Admin - Build & Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
- name: Install Workloads | |
uses: dotnet workload restore | |
- name: Restore | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore --configuration Release | |
- name: Test | |
run: dotnet test --no-build --configuration Release --logger "trx;LogFileName=test-results.trx" | |
- name: Check file existence | |
id: check_files | |
if: success() || failure() | |
uses: andstor/file-existence-action@v1 | |
with: | |
files: "test-results.trx" | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: steps.check_files.outputs.files_exists == 'true' | |
with: | |
name: Tests Results | |
path: test-results.trx | |
reporter: dotnet-trx |