Skip to content

Add zkSync sepolia network #4

Add zkSync sepolia network

Add zkSync sepolia network #4

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 16.x
registry-url: https://registry.npmjs.org
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install test node dependencies
run: |
sudo apt-get update && sudo apt-get install -y \
cmake pkg-config libssl-dev clang
- name: Install test node
run: |
cargo install --git https://github.com/matter-labs/era-test-node.git --locked
- id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile
# This is required separately from yarn test because it generates the typechain definitions
- name: Compile
run: yarn compile
- name: Run test node
run: |
era_test_node run &
- name: Run unit tests
run: yarn test