-
Notifications
You must be signed in to change notification settings - Fork 30
72 lines (56 loc) · 2.25 KB
/
tests-rc.yaml
File metadata and controls
72 lines (56 loc) · 2.25 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Tests (Bee RC)
on:
push:
branches:
- 'master'
pull_request:
branches:
- '**'
jobs:
tests-bee-rc:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 24.x
- name: Install local dependencies
run: npm ci
- name: Install global dependencies
run: npm install --global bee-dev @fairdatasociety/fdp-play @ethersphere/swarm-cli
- name: Clone fdp-play
run: git clone https://github.com/fairDataSociety/fdp-play
- name: Install fdp-play dependencies
run: |
cd fdp-play && npm install
cd orchestrator && npm install
- name: Build fdp-play images
run: |
cd fdp-play/orchestrator
npm run build:env -- --build-base-bee --bee-repository=ethersphere/bee.git
- name: Clean up fdp-play
run: rm -rf fdp-play/test
- name: Run bee-dev
run: bee-dev --port 16337 &
- name: Start fdp-play environment
run: fdp-play start --detach --blockchain-image ethereum/client-go:release-1.13 --bee-version HEAD-commit
- name: Deposit to chequebook
run: |
swarm-cli cheque deposit 100000000000000000
swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:11633
swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:21633
swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:31633
swarm-cli cheque deposit 100000000000000000 --bee-api-url http://localhost:41633
- name: Create managed postage batch
run: echo "JEST_MANAGED_BATCH_ID=$(swarm-cli stamp buy --depth 20 --amount 1b --quiet)" >> $GITHUB_ENV
- name: Create external postage batch
run: echo "JEST_EXTERNAL_BATCH_ID=$(swarm-cli stamp buy --depth 20 --amount 1b --quiet)" >> $GITHUB_ENV
- name: Tests
id: tests
env:
JEST_BEE_URL: http://localhost:1633
JEST_BEE_SIGNER: '566058308ad5fa3888173c741a1fb902c9f1f19559b11fc2738dfc53637ce4e9'
JEST_WITHDRAW_ADDRESS: '0x0000000000000000000000000000000000000000'
run: npm test