forked from xmtp/xmtpd
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.25 KB
/
test.yml
File metadata and controls
50 lines (44 loc) · 1.25 KB
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
name: Test
on:
push:
branches:
- main
- rel/**
pull_request:
jobs:
test:
name: Test (Node)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
fetch-tags: true
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: "**/*.sum"
- run: dev/docker/up single
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1.6.0
with:
version: v1.3.5
- 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@v2
if: github.repository == 'xmtp/xmtpd' && github.ref == 'refs/heads/main'
with:
api_key: ${{ secrets.DD_API_KEY }}
service: xmtp-node-go
files: report.xml
env: ci