-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d84b5ef
commit e148c8e
Showing
1 changed file
with
9 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build | ||
name: Build & Test | ||
|
||
on: | ||
push: | ||
|
@@ -8,13 +8,20 @@ on: | |
branches: | ||
- main | ||
|
||
env: | ||
NET6: net6.0 | ||
NET7: net7.0 | ||
NET8: net8.0 | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
dotnet-version: [ '6.0.x', '7.0.x', '8.0.x' ] | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
NET_VERSION: net${{ matrix.dotnet-version }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -27,7 +34,7 @@ jobs: | |
- name: Build | ||
run: dotnet build --configuration Release --no-restore | ||
- name: Test | ||
run: dotnet test --no-restore --verbosity normal --logger trx --results-directory "TestResults-${{ matrix.os }} ${{ matrix.dotnet-version }}" | ||
run: dotnet test -f ${{ env.NET_VERSION }} --no-restore --verbosity normal --logger trx --results-directory "TestResults-${{ matrix.os }} ${{ matrix.dotnet-version }}" | ||
- name: Upload a Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
|