Merge branch 'main' into chore/staging-1.2.1-deployment #2018
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: Lint | |
on: | |
push: | |
paths: | |
- "contracts/**" | |
- ".github/**" | |
jobs: | |
run-lint: | |
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://git@github.com/ | |
- name: install foundry | |
uses: onbjerg/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: install nodejs | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- 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 lint checks | |
run: yarn lint:check |