Skip to content

Commit 41e88d8

Browse files
ci: split system tests in two job (backport #22080) (#22089)
Co-authored-by: Julien Robert <[email protected]>
1 parent b05abc3 commit 41e88d8

File tree

2 files changed

+41
-11
lines changed

2 files changed

+41
-11
lines changed

Diff for: .github/workflows/test.yml

+1-11
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ jobs:
144144
name: "${{ github.sha }}-e2e-coverage"
145145
path: ./tests/e2e-profile.out
146146

147-
test-system:
147+
test-system: # v2 system tests are in v2-test.yml
148148
runs-on: ubuntu-latest
149149
steps:
150150
- uses: actions/checkout@v4
@@ -183,16 +183,6 @@ jobs:
183183
name: "testnet-setup"
184184
path: ./systemtests/testnet/
185185
retention-days: 3
186-
- name: system tests v2
187-
if: env.GIT_DIFF
188-
run: |
189-
COSMOS_BUILD_OPTIONS=v2 make test-system
190-
- uses: actions/upload-artifact@v3
191-
if: failure()
192-
with:
193-
name: "testnet-setup"
194-
path: ./systemtests/testnet/
195-
retention-days: 3
196186

197187
repo-analysis:
198188
runs-on: ubuntu-latest

Diff for: .github/workflows/v2-test.yml

+40
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,43 @@ jobs:
109109
if: env.GIT_DIFF
110110
run: |
111111
cd server/v2/cometbft && go test -mod=readonly -race -timeout 30m -tags='ledger test_ledger_mock'
112+
113+
test-system-v2:
114+
runs-on: ubuntu-latest
115+
steps:
116+
- uses: actions/checkout@v4
117+
with:
118+
fetch-tags: true
119+
- uses: actions/setup-go@v5
120+
with:
121+
go-version: "1.23"
122+
check-latest: true
123+
cache: true
124+
cache-dependency-path: |
125+
simapp/v2/go.sum
126+
systemtest/go.sum
127+
- uses: technote-space/[email protected]
128+
id: git_diff
129+
with:
130+
PATTERNS: |
131+
**/*.go
132+
go.mod
133+
go.sum
134+
**/go.mod
135+
**/go.sum
136+
**/Makefile
137+
Makefile
138+
- name: Install musl lib for simd (docker) binary
139+
if: env.GIT_DIFF
140+
run: |
141+
sudo apt-get install -y musl
142+
- name: system tests v2
143+
if: env.GIT_DIFF
144+
run: |
145+
COSMOS_BUILD_OPTIONS=v2 make test-system
146+
- uses: actions/upload-artifact@v3
147+
if: failure()
148+
with:
149+
name: "testnet-setup"
150+
path: ./systemtests/testnet/
151+
retention-days: 3

0 commit comments

Comments
 (0)