Skip to content

Commit 146e818

Browse files
ci: split stable and rc testing (#1121)
* ci: test with bee-2.7.0 * ci: test with bee-2.7.0 * 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 b560636 commit 146e818

2 files changed

Lines changed: 82 additions & 19 deletions

File tree

.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+
jobs:
12+
tests-bee-rc:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v6
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v6
21+
with:
22+
node-version: 24.x
23+
24+
- name: Install local dependencies
25+
run: npm ci
26+
27+
- name: Install global dependencies
28+
run: npm install --global bee-dev @fairdatasociety/fdp-play @ethersphere/swarm-cli
29+
30+
- name: Clone fdp-play
31+
run: git clone https://github.com/fairDataSociety/fdp-play
32+
33+
- name: Install fdp-play dependencies
34+
run: |
35+
cd fdp-play && npm install
36+
cd orchestrator && npm install
37+
38+
- name: Build fdp-play images
39+
run: |
40+
cd fdp-play/orchestrator
41+
npm run build:env -- --build-base-bee --bee-repository=ethersphere/bee.git
42+
43+
- name: Clean up fdp-play
44+
run: rm -rf fdp-play/test
45+
46+
- name: Run bee-dev
47+
run: bee-dev --port 16337 &
48+
49+
- name: Start fdp-play environment
50+
run: fdp-play start --detach --blockchain-image ethereum/client-go:release-1.13 --bee-version HEAD-commit
51+
52+
- name: Deposit to chequebook
53+
run: |
54+
swarm-cli cheque deposit 100000000000000000
55+
swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:11633
56+
swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:21633
57+
swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:31633
58+
swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:41633
59+
60+
- name: Create managed postage batch
61+
run: echo "JEST_MANAGED_BATCH_ID=$(swarm-cli stamp buy --depth 20 --amount 1b --quiet)" >> $GITHUB_ENV
62+
63+
- name: Create external postage batch
64+
run: echo "JEST_EXTERNAL_BATCH_ID=$(swarm-cli stamp buy --depth 20 --amount 1b --quiet)" >> $GITHUB_ENV
65+
66+
- name: Tests
67+
id: tests
68+
env:
69+
JEST_BEE_URL: http://localhost:1633
70+
JEST_BEE_SIGNER: '566058308ad5fa3888173c741a1fb902c9f1f19559b11fc2738dfc53637ce4e9'
71+
JEST_WITHDRAW_ADDRESS: '0x0000000000000000000000000000000000000000'
72+
run: npm test

.github/workflows/tests.yaml

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tests
1+
name: Tests (Bee stable)
22

33
on:
44
push:
@@ -9,39 +9,30 @@ on:
99
- '**'
1010

1111
jobs:
12-
nodejs:
12+
tests-bee-stable:
1313
runs-on: ubuntu-latest
1414

1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v4
18-
with:
19-
fetch-depth: 1
17+
uses: actions/checkout@v6
2018

21-
- name: Setup Node.js
19+
- name: Set up Node.js
2220
uses: actions/setup-node@v4
2321
with:
24-
node-version: 20.x
22+
node-version: 24.x
2523

26-
- name: Install dependencies
24+
- name: Install local dependencies
2725
run: npm ci
2826

29-
- name: Install fdp-play
30-
run: npm install --global @fairdatasociety/fdp-play
31-
32-
- name: Install swarm-cli
33-
run: npm install --global @ethersphere/swarm-cli
27+
- name: Install global dependencies
28+
run: npm install --global bee-dev @fairdatasociety/fdp-play @ethersphere/swarm-cli npxie
3429

3530
- name: Run bee-dev
36-
run: npx bee-dev --port 16337 &
31+
run: bee-dev --port 16337 &
3732

3833
- name: Start fdp-play environment
3934
run: fdp-play start --detach --fresh --bee-version d0aa8b9-commit
4035

41-
- name: Stake
42-
if: false
43-
run: swarm-cli stake deposit --bzz 10.1 --yes
44-
4536
- name: Deposit to chequebook
4637
run: |
4738
swarm-cli cheque deposit 100000000000000000
@@ -71,7 +62,7 @@ jobs:
7162
- name: Compare coverage
7263
if: github.ref != 'refs/heads/master'
7364
run:
74-
npx npxie@2.6.1-rc.5 coverage-comparison "${{ github.repository }}" "master" "${{ github.head_ref }}"
65+
npxie coverage-comparison "${{ github.repository }}" "master" "${{ github.head_ref }}"
7566
"test/coverage/coverage-summary.json" "${{ github.event.pull_request.number }}" "${{ secrets.GITHUB_TOKEN }}"
7667

7768
- name: Fail if tests failed

0 commit comments

Comments
 (0)