fix: use build test instead of unit test #13
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: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
name: Test on ${{ matrix.os }} .NET ${{ matrix.dotnet_version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
dotnet_version: ['7.0','8.0'] | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
steps: | |
- uses: actions/[email protected] | |
with: | |
dotnet-version: ${{ matrix.dotnet_versions }} | |
- uses: actions/checkout@v4 | |
- name: Restore packages | |
run: dotnet restore | |
- name: Build Test | |
run: dotnet build -c Release -f net${{ matrix.dotnet_version }} --no-restore |