Skip to content

Prepare bugs

Prepare bugs #6796

Workflow file for this run

name: Node.js CI
on:
pull_request:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
lint-and-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node:
- 'lts/iron'
- lts/hydrogen
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm run build
- run: npm run lint
- run: npm run build-docs
- run: npm run test -- --runInBand
- name: Codecov
uses: codecov/[email protected]
with:
file: .coverage/*.json
env:
CI: true
RUN_INTEGRATION: true
integration-tests-testnet:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
include:
- testnet: parisnet
testnet_uppercase: PARISNET
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/hydrogen
- run: npm ci
- run: npm run build
- if: ${{ !github.event.pull_request.head.repo.fork }}
name: Tailscale
uses: tailscale/github-action@v1
with:
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
version: 1.32.2
- run: npm -w integration-tests run test:${{ matrix.testnet }} -- --maxWorkers=4
env:
# Ternary operator workaround
TEZOS_RPC_${{ matrix.testnet_uppercase }}: ${{ github.event.pull_request.head.repo.fork && format('https://{0}.ecadinfra.com', matrix.testnet) || null }}
integration-tests-tezbox:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
include:
- testnet: parisnet
testnet_uppercase: PARISNET
flextesa_docker_image:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/hydrogen
- name: Provision Tezbox ${{ matrix.testnet }} container
run: npm -w integration-tests run sandbox:${{ matrix.testnet }}
- run: npm ci
- run: npm run build
- run: npm -w integration-tests run test __tests__/tezbox/
env:
TEZOS_RPC_${{ matrix.testnet_uppercase }}: http://0.0.0.0:8732