Skip to content

fix: do not error out in status when swap is disabled #1637

fix: do not error out in status when swap is disabled

fix: do not error out in status when swap is disabled #1637

Workflow file for this run

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@v2
with:
fetch-depth: 1
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 20.x
- name: Install dependencies
run: npm ci
- name: Install fdp-play
run: npm install --global @fairdatasociety/fdp-play
- name: Install swarm-cli
run: npm install --global @ethersphere/swarm-cli
- name: Run bee-dev
run: npx bee-dev --port 16337 &
- name: Run bee-dev with --no-swap
run: npx bee-dev --port 16338 --no-swap &
- name: Start fdp-play environment
run: fdp-play start --detach --fresh --bee-version ${{ matrix.bee-version }}
- 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:
npx npxie coverage-comparison "${{ github.repository }}" "master" "${{ github.head_ref }}"
"test/coverage/coverage-summary.json" "${{ github.event.pull_request.number }}" "${{ secrets.GITHUB_TOKEN }}"