Skip to content

Commit

Permalink
ci: Add build-test github action
Browse files Browse the repository at this point in the history
  • Loading branch information
s2quake committed Jun 17, 2024
1 parent b34b72c commit deeb9b5
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Test

on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
dotnet-version: 8.0.100
- run: dotnet build --configuration Release
- run: |
dotnet test --configuration Release --no-restore --no-build \
--logger "trx;LogFileName=${{ github.workspace }}/test-results.trx"
- run: echo "PWD=$(pwd)" >> $GITHUB_ENV
- uses: dorny/[email protected]
if: success() || failure()
with:
name: XUnit Tests
path: ${{ github.workspace }}/test-results.trx
reporter: dotnet-trx
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: test-results
path: ${{ github.workspace }}/test-results.trx

0 comments on commit deeb9b5

Please sign in to comment.