-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (59 loc) · 2.1 KB
/
ci.yaml
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
59
60
61
62
63
64
65
66
67
name: Go SDK
on:
pull_request:
branches:
- '**'
push:
branches:
- main
tags:
- '*'
workflow_dispatch:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
args: -v --timeout 10m -E gofmt -E whitespace -E revive -E gosec -E goimports --exclude-dirs='generated' --exclude-dirs-use-default=false
go-test:
name: Test
runs-on: ubuntu-latest
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
steps:
- uses: actions/checkout@v4
- name: test code
run: |
go test -v ./...
run-examples:
name: Run examples (to look for regressions)
runs-on: ubuntu-latest
needs:
- lint
- go-test
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
steps:
- uses: actions/checkout@v4
- name: test examples (not rate limiting)
run: |
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "Running hello world"
go run examples/hello-world/hello-world.go
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "Running smoke test"
go run examples/smoke-test/smoke-test.go
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "Running screening example"
go run examples/screening/screening.go
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "Running trade search example"
go run examples/trade-search/trade-search.go
#FIXME: add integration test to confirm it is working with the most up to date bindings
#FIXME: add job to release on tag