Update actions to versions running on Node20 #700
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: Run linters | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
lint-js: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "14.x" | |
cache: "npm" | |
- name: Install dependencies | |
run: npm install | |
- name: Run JS linter | |
run: npm run lint:js | |
lint-sol: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "14.x" | |
cache: "npm" | |
- name: Install dependencies | |
run: npm install | |
- name: Run Solidity linter | |
run: npm run lint:sol |