Woz/frontend update #140
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: | |
pull_request: | |
push: | |
branches: | |
- main | |
- release/** | |
jobs: | |
solhint-contract: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: technote-space/[email protected] | |
with: | |
PATTERNS: | | |
contracts/* | |
test/* | |
.github/workflows/lint.yml | |
- name: Install packages | |
if: env.GIT_DIFF | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: Install solhint | |
if: env.GIT_DIFF | |
run: | | |
yarn install | |
- name: Run solhint | |
if: env.GIT_DIFF | |
run: | | |
make lint-contracts |