Basic tracing #5462
Workflow file for this run
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: 'Run tests' | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- 'src/**' | |
pull_request: | |
paths: | |
- 'src/**' | |
env: | |
DOTNET_VERSION: '7.0.x' # The .NET SDK version to use | |
CONFIGURATION: 'Release' # The configuration to use | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
tests: | |
name: tests-${{matrix.os}} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version: 18 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Build and test | |
run: | | |
dotnet restore ./src | |
dotnet build ./src --configuration ${{ env.CONFIGURATION }} --no-restore | |
dotnet test ./src --no-build |