ci: test with bee-2.7.0 #1656
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Node.js tests | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| pull_request: | |
| branches: | |
| - '**' | |
| env: | |
| BEE_API_URL: 'http://localhost:1633' | |
| BEE_PEER_API_URL: 'http://localhost:11633' | |
| jobs: | |
| node-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| bee-version: ['d0aa8b9-commit'] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20.x | |
| - name: Install local dependencies | |
| run: npm ci | |
| - name: Install global dependencies | |
| run: npm install --global bee-dev @fairdatasociety/fdp-play @ethersphere/swarm-cli npxie | |
| - 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=Cafe137/inbee4.git | |
| - name: Clean up fdp-play | |
| run: rm -rf fdp-play/test | |
| - name: Run bee-dev | |
| run: bee-dev --port 16337 & | |
| - name: Run bee-dev with --no-swap | |
| run: bee-dev --port 16338 --no-swap & | |
| - 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: Print swarm-cli status | |
| continue-on-error: true | |
| run: swarm-cli status | |
| - name: Tests | |
| run: npm run test | |
| - name: Compare coverage | |
| if: github.ref != 'refs/heads/master' | |
| run: | |
| npxie coverage-comparison "${{ github.repository }}" "master" "${{ github.head_ref }}" | |
| "test/coverage/coverage-summary.json" "${{ github.event.pull_request.number }}" "${{ secrets.GITHUB_TOKEN }}" |