Skip to content

Commit 8afb208

Browse files
ci: split stable and rc testing (#663)
* ci: split stable and rc testing * test: update test coverage --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent a034b27 commit 8afb208

File tree

2 files changed

+84
-21
lines changed

2 files changed

+84
-21
lines changed

.github/workflows/tests-rc.yaml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Tests (Bee RC)
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
pull_request:
8+
branches:
9+
- '**'
10+
11+
env:
12+
BEE_API_URL: 'http://localhost:1633'
13+
BEE_PEER_API_URL: 'http://localhost:11633'
14+
15+
jobs:
16+
tests-bee-rc:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v6
22+
23+
- name: Set up Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 24.x
27+
28+
- name: Install local dependencies
29+
run: npm ci
30+
31+
- name: Install global dependencies
32+
run: npm install --global bee-dev @fairdatasociety/fdp-play @ethersphere/swarm-cli npxie
33+
34+
- name: Clone fdp-play
35+
run: git clone https://github.com/fairDataSociety/fdp-play
36+
37+
- name: Install fdp-play dependencies
38+
run: |
39+
cd fdp-play && npm install
40+
cd orchestrator && npm install
41+
42+
- name: Build fdp-play images
43+
run: |
44+
cd fdp-play/orchestrator
45+
npm run build:env -- --build-base-bee --bee-repository=ethersphere/bee.git
46+
47+
- name: Clean up fdp-play
48+
run: rm -rf fdp-play/test
49+
50+
- name: Run bee-dev
51+
run: bee-dev --port 16337 &
52+
53+
- name: Run bee-dev with --no-swap
54+
run: bee-dev --port 16338 --no-swap &
55+
56+
- name: Start fdp-play environment
57+
run: fdp-play start --detach --blockchain-image ethereum/client-go:release-1.13 --bee-version HEAD-commit
58+
59+
- name: Deposit to chequebook
60+
run: |
61+
swarm-cli cheque deposit 100000000000000000
62+
swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:11633
63+
swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:21633
64+
swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:31633
65+
swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:41633
66+
67+
- name: Print swarm-cli status
68+
continue-on-error: true
69+
run: swarm-cli status
70+
71+
- name: Tests
72+
run: npm run test
Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Node.js tests
1+
name: Tests (Bee stable)
22

33
on:
44
push:
@@ -13,41 +13,32 @@ env:
1313
BEE_PEER_API_URL: 'http://localhost:11633'
1414

1515
jobs:
16-
node-tests:
16+
tests-bee-stable:
1717
runs-on: ubuntu-latest
1818

19-
strategy:
20-
matrix:
21-
bee-version: ['d0aa8b9-commit']
22-
2319
steps:
2420
- name: Checkout
25-
uses: actions/checkout@v2
26-
with:
27-
fetch-depth: 1
21+
uses: actions/checkout@v6
2822

2923
- name: Set up Node.js
30-
uses: actions/setup-node@v1
24+
uses: actions/setup-node@v4
3125
with:
32-
node-version: 20.x
26+
node-version: 24.x
3327

34-
- name: Install dependencies
28+
- name: Install local dependencies
3529
run: npm ci
3630

37-
- name: Install fdp-play
38-
run: npm install --global @fairdatasociety/fdp-play
39-
40-
- name: Install swarm-cli
41-
run: npm install --global @ethersphere/swarm-cli
31+
- name: Install global dependencies
32+
run: npm install --global bee-dev @fairdatasociety/fdp-play @ethersphere/swarm-cli npxie
4233

4334
- name: Run bee-dev
44-
run: npx bee-dev --port 16337 &
35+
run: bee-dev --port 16337 &
4536

4637
- name: Run bee-dev with --no-swap
47-
run: npx bee-dev --port 16338 --no-swap &
38+
run: bee-dev --port 16338 --no-swap &
4839

4940
- name: Start fdp-play environment
50-
run: fdp-play start --detach --fresh --bee-version ${{ matrix.bee-version }}
41+
run: fdp-play start --detach --fresh --bee-version d0aa8b9-commit
5142

5243
- name: Deposit to chequebook
5344
run: |
@@ -67,5 +58,5 @@ jobs:
6758
- name: Compare coverage
6859
if: github.ref != 'refs/heads/master'
6960
run:
70-
npx npxie coverage-comparison "${{ github.repository }}" "master" "${{ github.head_ref }}"
61+
npxie coverage-comparison "${{ github.repository }}" "master" "${{ github.head_ref }}"
7162
"test/coverage/coverage-summary.json" "${{ github.event.pull_request.number }}" "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)