Skip to content

test: Isolate integration, external tests #4

test: Isolate integration, external tests

test: Isolate integration, external tests #4

name: Indicators
on:
push:
branches: ["main","v3"]
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
name: integration tests
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
checks: write
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Setup .NET
id: dotnet-new
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.x"
dotnet-quality: "ga"
- name: Build library
run: >
dotnet build
--configuration Release
--property:ContinuousIntegrationBuild=true
-warnAsError
- name: Test public API
run: >
dotnet test tests/external/public-api/Tests.PublicApi.csproj
--configuration Release
--no-build
--verbosity normal
--logger trx
--results-directory ./test-results
- name: Test integrations
env:
ALPACA_KEY: ${{ secrets.ALPACA_KEY }}
ALPACA_SECRET: ${{ secrets.ALPACA_SECRET }}
run: >
dotnet test tests/external/integration/Tests.Integration.csproj
--configuration Release
--no-build
--verbosity normal
--logger trx
--results-directory ./test-results
- name: Post test summary
uses: dorny/test-reporter@v1
if: always()
with:
name: Test results
path: ./test-results/**/*.trx
reporter: dotnet-trx