-
Notifications
You must be signed in to change notification settings - Fork 245
58 lines (48 loc) · 1.25 KB
/
test-integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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 integrations
env:
ALPACA_KEY: ${{ secrets.ALPACA_KEY }}
ALPACA_SECRET: ${{ secrets.ALPACA_SECRET }}
run: >
dotnet test
--configuration Release
--settings tests/tests.integration.runsettings
--results-directory ./test-results
--no-build
--verbosity normal
--logger trx
- name: Post test summary
uses: dorny/test-reporter@v1
if: always()
with:
name: Test results
path: ./test-results/**/*.trx
reporter: dotnet-trx