ci: split up lint #2
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 contract/ | |
on: | |
push: | |
branches-ignore: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
name: Lint Code Base | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: read | |
statuses: write | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Clean cache | |
working-directory: ./contracts | |
run: yarn cache clean | |
- name: Install packages for contracts | |
working-directory: ./contracts | |
run: yarn install | |
- name: Run eslint against contracts | |
working-directory: ./contracts | |
run: yarn lint |