Skip to content

fix: add AlreadyPaused error to PauseRegistry and implement tests for… #978

fix: add AlreadyPaused error to PauseRegistry and implement tests for…

fix: add AlreadyPaused error to PauseRegistry and implement tests for… #978

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read
packages: read
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Use Node.js 20.15.1
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: "20.15.1"
- name: NPM Login
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm config set //npm.pkg.github.com/:_authToken $GITHUB_TOKEN
- name: Install dependencies
run: npm ci
- name: "Install Foundry"
uses: "foundry-rs/foundry-toolchain@50d5a8956f2e319df19e6b57539d7e2acb9f8c1e" # v1.5.0
with:
version: stable
- name: Lint contracts
run: npm run lint:sol
- name: Compile contracts
run: npm run compile
- name: Lint test and scripts
run: npm run lint:ts
- name: Unit test smart contracts
run: npm test
# - name: Coverage report
# run: npm run coverage
# - name: Coveralls
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# - name: Reproduce build
# run: npm publish --dry-run