feat: Incremental & streaming quotes, v3.0.0 #440
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: Indicators | |
on: | |
push: | |
branches: ["main","v3"] | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
test: | |
name: unit tests | |
runs-on: ${{ matrix.os }} | |
permissions: | |
contents: read | |
actions: read | |
checks: write | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
dotnet-version: ["9.x"] | |
# TODO: restore when GitHub Action runners | |
# have .NET 9.x SDK default installed | |
# ["2.1.x", "6.x", "9.x"] | |
env: | |
# identifying primary configuration so only one reports coverage | |
IS_PRIMARY: ${{ matrix.os == 'ubuntu-latest' && matrix.dotnet-version == '9.x' }} | |
# .NET SDK versions in the matrix that support | |
# `dotnet-quality: 'ga'`, not supported before 5.x | |
SUPPORT_GA: ${{ contains(fromJson('["6.x", "9.x"]'), matrix.dotnet-version) }} | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
dotnet-quality: "ga" | |
- name: Build library | |
run: > | |
dotnet build | |
--configuration Release | |
--property:ContinuousIntegrationBuild=true | |
-warnAsError | |
- name: Test indicators | |
run: > | |
dotnet test | |
--configuration Release | |
--settings tests/tests.unit.runsettings | |
--results-directory ./test-results | |
--no-build | |
--verbosity normal | |
--logger trx | |
--collect:"XPlat Code Coverage" | |
# the remaining steps are only needed from one primary instance | |
- name: Post test summary | |
uses: dorny/test-reporter@v1 | |
if: env.IS_PRIMARY == 'true' && always() | |
with: | |
name: Test results | |
path: ./test-results/**/*.trx | |
reporter: dotnet-trx | |
- name: Publish coverage to Codacy | |
uses: codacy/codacy-coverage-reporter-action@v1 | |
if: env.IS_PRIMARY == 'true' | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
coverage-reports: ./test-results/**/coverage.cobertura.xml |