Skip to content

Commit f4b51d7

Browse files
authored
Merge pull request #1745 from cosmos/move-test-backend-ghactions
Move test-backend job to GitHub Actions
2 parents 508bf2c + 44a3ef8 commit f4b51d7

File tree

6 files changed

+56
-157
lines changed

6 files changed

+56
-157
lines changed

.circleci/config.yml

Lines changed: 0 additions & 151 deletions
This file was deleted.

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Use Node.js
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: '20.x'
21+
node-version: 20
2222
cache: 'yarn'
2323

2424
- uses: actions/setup-go@v5

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Use Node.js
1717
uses: actions/setup-node@v4
1818
with:
19-
node-version: '20.x'
19+
node-version: 20
2020
cache: 'yarn'
2121

2222
- name: Start wasmd

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Use Node.js
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: '20.x'
21+
node-version: 20
2222
cache: 'yarn'
2323

2424
- name: Install dependencies

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Use Node.js
2121
uses: actions/setup-node@v4
2222
with:
23-
node-version: '20.x'
23+
node-version: 20
2424
cache: 'yarn'
2525

2626
- name: Install dependencies

.github/workflows/test.yml

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Use Node.js
1717
uses: actions/setup-node@v4
1818
with:
19-
node-version: "22"
19+
node-version: 22
2020
cache: 'yarn'
2121

2222
- name: Start wasmd
@@ -55,7 +55,7 @@ jobs:
5555
test:
5656
strategy:
5757
matrix:
58-
node-version: ["20", "22", "24"]
58+
node-version: [20, 22, 24]
5959
runs-on: ubuntu-24.04
6060
steps:
6161
- uses: actions/checkout@v4
@@ -101,3 +101,53 @@ jobs:
101101
WASMD_ENABLED: 1
102102
SES_ENABLED: 1
103103
run: yarn test --stream
104+
105+
test-backends:
106+
strategy:
107+
matrix:
108+
simapp: ["simapp47", "simapp50"]
109+
runs-on: ubuntu-24.04
110+
steps:
111+
- uses: actions/checkout@v4
112+
with:
113+
lfs: true
114+
115+
- name: Use Node.js
116+
uses: actions/setup-node@v4
117+
with:
118+
node-version: 22
119+
cache: 'yarn'
120+
121+
- name: Start wasmd
122+
run: RUNNER_TRACKING_ID="" && ./scripts/wasmd/start.sh &
123+
- name: Start simapp
124+
run: RUNNER_TRACKING_ID="" && ./scripts/${{ matrix.simapp }}/start.sh &
125+
- name: Start slow simapp
126+
run: RUNNER_TRACKING_ID="" && ./scripts/${{ matrix.simapp }}/slow_start.sh &
127+
- name: Start Tendermint blockchains
128+
run: RUNNER_TRACKING_ID="" && ./scripts/tendermint/all_start.sh &
129+
- name: Start socket server
130+
run: RUNNER_TRACKING_ID="" && ./scripts/socketserver/start.sh &
131+
- name: Start http server
132+
run: RUNNER_TRACKING_ID="" && ./scripts/httpserver/start.sh &
133+
134+
- name: Install dependencies
135+
run: yarn install --immutable --immutable-cache --check-cache
136+
137+
- name: Build
138+
run: yarn build
139+
140+
- name: Initialize wasmd (deploy contracts and friends)
141+
run: ./scripts/wasmd/init.sh
142+
143+
- name: Test
144+
env:
145+
HTTPSERVER_ENABLED: 1
146+
TENDERMINT_ENABLED: 1
147+
SOCKETSERVER_ENABLED: 1
148+
SKIP_BUILD: 1
149+
WASMD_ENABLED: 1
150+
run: |
151+
[ "${{ matrix.simapp }}" = "simapp47" ] && export SIMAPP47_ENABLED=1 SLOW_SIMAPP47_ENABLED=1
152+
[ "${{ matrix.simapp }}" = "simapp50" ] && export SIMAPP50_ENABLED=1 SLOW_SIMAPP50_ENABLED=1
153+
yarn test --stream

0 commit comments

Comments
 (0)