|
| 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 |
0 commit comments