Redeploy 3 Polygon Contracts and Verify #259
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: package/contracts - Build -> Test | |
on: | |
push: | |
branches: | |
- main | |
- release | |
pull_request: | |
branches: | |
- "**" | |
jobs: | |
tests: | |
concurrency: ci-contract-${{ github.head_ref || github.run_id }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: | | |
pnpm install | |
- name: Compile contract | |
run: | | |
pnpm compile | |
- name: Test contract | |
env: | |
FORK_RPC_URL: ${{ secrets.FORK_RPC_URL }} | |
run: | | |
pnpm test | |
# slither: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v3 | |
# with: | |
# fetch-depth: 1 | |
# | |
# - uses: pnpm/action-setup@v2 | |
# with: | |
# version: 7 | |
# | |
# - uses: actions/setup-node@v3 | |
# with: | |
# node-version: '16' | |
# cache: 'pnpm' | |
# | |
# - name: Install dependencies | |
# run: | | |
# pnpm install | |
# - name: Run slither | |
# uses: crytic/[email protected] | |
# with: | |
# node-version: 16 | |
# target: ./packages/contracts | |
# slither-config: ./packages/contracts/slither.config.json |