Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
s2quake committed Jun 27, 2024
1 parent 38d229a commit ee6fa2c
Showing 1 changed file with 8 additions and 25 deletions.
33 changes: 8 additions & 25 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,19 @@ on:
env:
TEST_RESULTS_PATH: ${{ github.workspace }}/test-results.trx

permissions:
contents: read
actions: read
checks: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.1.7
- name: Setup .NET
uses: actions/setup-dotnet@v4.0.0
- uses: actions/checkout@v4.1.7
- uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 8.0.100
- name: Dotnet Build
run: dotnet build --configuration Release
- name: Dotnet Test
run: |
dotnet test --configuration Release --no-restore --no-build --logger "trx;LogFileName=${{ env.TEST_RESULTS_PATH }}"
- name: Upload test results
uses: actions/upload-artifact@v4
if: success() || failure()
- run: dotnet build --configuration Release
- run: |
dotnet test --configuration Release --no-restore --no-build \
--logger "trx;LogFileName=${{ env.TEST_RESULTS_PATH }}"
- uses: actions/upload-artifact@v4
with:
name: test-results
name: upload-test-results
path: ${{ env.TEST_RESULTS_PATH }}
- name: Upload test results
uses: dorny/test-reporter@v1.9.1
if: success() || failure()
with:
name: XUnit Tests
path: ${{ env.TEST_RESULTS_PATH }}
reporter: dotnet-trx

0 comments on commit ee6fa2c

Please sign in to comment.