Skip to content

Use namespace in DB #1084

Use namespace in DB

Use namespace in DB #1084

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Test (Node)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-go@v3
with:
go-version-file: go.mod
- run: dev/docker/up
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: 'nightly-2044faec64f99a21f0e5f0094458a973612d0712'
- run: dev/contracts/deploy-local
- 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
contracts:
name: Test (Contracts)
strategy:
fail-fast: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: 'nightly-2044faec64f99a21f0e5f0094458a973612d0712'
- name: Run Forge build
working-directory: contracts
run: |
forge --version
forge build --sizes
- name: Run Forge tests
working-directory: contracts
run: |
forge test -vvv
id: test