Skip to content

fix: test

fix: test #892

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [16]
name: ${{ matrix.os }} - Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install Dependencies
run: yarn install
- name: Run Test
env:
L1_TEST_NET_RPC_URL: ${{ secrets.L1_TEST_NET_RPC_URL }}
L1_TEST_NET_RPC_WSS_URL: ${{ secrets.L1_TEST_NET_RPC_WSS_URL }}
L2_TEST_NET_RPC_URL: ${{ secrets.L2_TEST_NET_RPC_URL }}
L2_TEST_NET_RPC_WSS_URL: ${{ secrets.L2_TEST_NET_RPC_WSS_URL }}
run: yarn test
- name: Coverage => (${{ matrix.os }} - Node ${{ matrix.node }})
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == 12 }}
env:
L1_TEST_NET_RPC_URL: ${{ secrets.L1_TEST_NET_RPC_URL }}
L1_TEST_NET_RPC_WSS_URL: ${{ secrets.L1_TEST_NET_RPC_WSS_URL }}
L2_TEST_NET_RPC_URL: ${{ secrets.L2_TEST_NET_RPC_URL }}
L2_TEST_NET_RPC_WSS_URL: ${{ secrets.L2_TEST_NET_RPC_WSS_URL }}
run: yarn test --coverage
- name: Dependencies Security Audit
run: npx audit-ci --skip-dev --critical --package-manager yarn
size:
runs-on: ubuntu-latest
name: size check (<= 500 KB)
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install Dependencies
run: yarn install
- run: yarn size