-
Notifications
You must be signed in to change notification settings - Fork 202
47 lines (44 loc) · 1.14 KB
/
sims.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
name: Run short simulations
on:
pull_request:
paths: ["**.go", "**.proto", "go.mod", "go.sum"]
jobs:
install-runsim:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21
cache: true
- uses: actions/cache@v3
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
- name: Install runsim
run: go install github.com/cosmos/tools/cmd/[email protected]
test-sim-nondeterminism:
runs-on: ubuntu-latest
needs: [install-runsim]
steps:
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
with:
SUFFIX_FILTER: |
**/**.go
go.mod
go.sum
- uses: actions/setup-go@v5
with:
go-version: 1.21
cache: true
if: env.GIT_DIFF
- uses: actions/cache@v3
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
if: env.GIT_DIFF
- name: test-sim-nondeterminism
run: |
make test-sim-nondeterminism
if: env.GIT_DIFF