Use static logging #422
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
# Run Mathematics.NET Unit Tests | |
name: Unit Tests | |
on: | |
push: | |
branches: [ main, dev ] | |
pull_request: | |
branches: [ main, dev ] | |
jobs: | |
test: | |
name: Run Unit Tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
# We do not specify our dotnet versions in the strategy matrix since we need all versions for the tests. | |
- name: Set up .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
8.x | |
9.x | |
- name: Restore Dependencies | |
run: dotnet restore | |
- name: Build Test Projects | |
run: | | |
cd tests/Mathematics.NET.Tests | |
dotnet build --no-restore | |
- name: Run Tests | |
run: | | |
cd tests/Mathematics.NET.Tests | |
dotnet test --no-build --verbosity normal |