update ontology and risk from prod (#177) #476
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: 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 |