On demand tests #7
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: On demand tests | |
on: | |
workflow_dispatch: | |
inputs: | |
test_pattern: | |
description: 'Test --filter pattern' | |
default: '*' | |
required: false | |
jobs: | |
on-demand-tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
fail-fast: false | |
env: | |
DOTNET_VERSION: 8.0.x | |
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | |
DOTNET_TieredPGO: 1 | |
DOTNET_ReadyToRun: 0 | |
DOTNET_TC_QuickJitForLoops: 1 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Nuget cache | |
uses: actions/cache@v3 | |
with: | |
path: | |
~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Build | |
run: dotnet build -c Release | |
- name: Running tests with `--filter '${{ github.event.inputs.test_pattern }}' | |
run: dotnet test -c Release --no-build --filter '${{ github.event.inputs.test_pattern }}' -v normal |