Revert "Remove deprecated methods from API (#402)" (#404) #1641
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: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version-file: go.mod | |
- run: dev/docker/up | |
- run: dev/e2e/docker/up | |
- name: Run Tests | |
run: | | |
export GOPATH="${HOME}/go/" | |
export PATH="${PATH}:${GOPATH}/bin" | |
go install github.com/jstemmer/go-junit-report/v2@latest | |
go test -v ./... | go-junit-report -set-exit-code -iocopy -out report.xml | |
- name: Run Race Tests | |
run: | | |
export GOPATH="${HOME}/go/" | |
export PATH="${PATH}:${GOPATH}/bin" | |
go test -v ./... -race | |
- uses: datadog/junit-upload-github-action@v1 | |
with: | |
api-key: ${{ secrets.DD_API_KEY }} | |
service: xmtp-node-go | |
files: report.xml | |
env: ci |