Skip to content

feat: refactor token list and add unit tests #21

feat: refactor token list and add unit tests

feat: refactor token list and add unit tests #21

name: Validate and Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
unit_tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14.x'
- name: Install NPM dependencies
run: npm ci
- name: Run NPM tests
run: npm run test
validate_json:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: pip install jsonschema
- name: Validate JSON
run: |
jsonschema -i ./json/linea-goerli-token-shortlist.json ./json/schema/l2-token-list-schema.json
verify_mainnet_shortlist:
runs-on: ubuntu-latest
env:
PROVIDER_URL: ${{ secrets.PROVIDER_URL }}
LINEA_PROVIDER_URL: ${{ secrets.LINEA_PROVIDER_URL }}
CONTRACT_ADDRESS: ${{ secrets.CONTRACT_ADDRESS }}
L2_TOKEN_BRIDGE: ${{ secrets.L2_TOKEN_BRIDGE }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependencies
run: npm install
- name: Execute script
run: npm run verify-start