Skip to content

fix: registration retry #212

fix: registration retry

fix: registration retry #212

Workflow file for this run

name: Tests
on:
pull_request:
branches:
- "**"
env:
BEE_VERSION: "1.8.2"
jobs:
test:
name: runtime tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
# env:
# PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true'
steps:
- name: checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v3
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install npm deps
if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm ci --cache .npm
- name: Check types
run: npm run check:types
- name: Lint check
run: npm run lint:check
- name: Install fdp-play
run: npm install -g @fairdatasociety/fdp-play
- name: Run fdp-play
run: fdp-play start -d --bee-version $BEE_VERSION
- name: copy config
run: cp .test.env .env
- name: buy stamps and npm start
run: |
curl -s -XPOST http://localhost:1635/stamps/10000000/18 | npm run start:batch --batch=$(cut -c 13-76) &
env:
CI: false
- name: wait for environment and batch
run: sleep 200
- name: tests
run: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
npm run test:puppeteer