Replace dependency eslint-plugin-node with eslint-plugin-n ^14.0.0 #764
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: Deploy Scripts Checks | |
on: | |
push: | |
paths: | |
- ".github/**" | |
- "contracts/**" | |
- "deploy/**" | |
- "lib/**" | |
- "scripts/**" | |
- "ts-utils/**" | |
- "package.json" | |
- "yarn.lock" | |
- "hardhat.config.ts" | |
jobs: | |
run-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
persist-credentials: false | |
- name: reconfigure git to use HTTP authentication | |
run: > | |
git config --global url."https://github.com/".insteadOf | |
ssh://[email protected]/ | |
- name: install foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly-de33b6af53005037b463318d2628b5cfcaf39916 | |
- name: install nodejs | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Yarn | |
run: npm install -g yarn | |
- name: cache node_modules | |
uses: actions/cache@v2 | |
with: | |
path: | | |
./node_modules | |
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
- name: install node dependencies | |
run: yarn | |
- name: run deployment on local fork | |
uses: BerniWittmann/background-server-action@v1 | |
with: | |
command: sleep 10 && yarn link_contracts && env RPC_URL=http://localhost:8545 PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 yarn hh deploy --network mainnet --deploy-scripts ./deploy/mainnet | |
start: anvil --fork-url ${{ secrets.MAINNET_FORK_RPC_URL }} |