Skip to content

feat: capped minter v2 minter role #31

feat: capped minter v2 minter role

feat: capped minter v2 minter role #31

Workflow file for this run

name: L2 contracts ci
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
env:
FOUNDRY_PROFILE: ci
jobs:
build:
defaults:
run:
working-directory: ./l2-contracts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: dutterbutter/foundry-zksync-toolchain@v1
- name: Install the dependencies
run: |
forge install --no-commit
npm install
- name: Build contracts
run: npm run compile
test:
defaults:
run:
working-directory: ./l2-contracts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: dutterbutter/foundry-zksync-toolchain@v1
- name: Install the dependencies
run: |
forge install --no-commit
npm install
- name: Run tests
run: forge test --no-match-path .integration.t.sol --zksync
- name: Run Era test node
uses: dutterbutter/[email protected]
- name: Run tests
run: npx hardhat test
lint:
defaults:
run:
shell: bash
working-directory: ./l2-contracts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: dutterbutter/foundry-zksync-toolchain@v1
- name: Install the dependencies
run: |
forge install --no-commit
npm install
- name: Install scopelint
uses: engineerd/[email protected]
with:
name: scopelint
repo: ScopeLift/scopelint
fromGitHubReleases: true
version: latest
pathInArchive: scopelint-x86_64-linux/scopelint
urlTemplate: https://github.com/ScopeLift/scopelint/releases/download/{{version}}/scopelint-x86_64-linux.tar.xz
token: ${{ secrets.GITHUB_TOKEN }}
- name: Check formatting
run: |
scopelint --version
scopelint check