-
Notifications
You must be signed in to change notification settings - Fork 74
49 lines (37 loc) · 1.18 KB
/
format_and_test.yml
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
name: Run Format, Unit Tests, and Integration Tests
on: [pull_request]
jobs:
gofmt:
name: "Go Format Check"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check code formatting using gofmt
uses: Jerome1337/[email protected]
with:
gofmt-path: '.'
gofmt-flags: '-l -d'
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Test
uses: robherley/[email protected]
integration-test:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Apply Invariants Patch
run: git apply ./test/fuzz/invariants.patch
- name: Run allora l1 chain
run: bash ./test/local_testnet_l1.sh
- name: IntegrationTest
run: INTEGRATION=TRUE RPC_MODE="RoundRobin" RPC_URLS="http://localhost:26657,http://localhost:26658,http://localhost:26659" /usr/bin/go test -timeout 15m -run ^TestExternalTestSuite$ github.com/allora-network/allora-chain/test/integration -v