Merge pull request #81 from lidofinance/fix/github-workflows #7
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: Linters | |
on: [push, pull_request] | |
jobs: | |
lint: | |
name: ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v4 | |
- name: Enable corepack | |
shell: bash | |
run: corepack enable | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: npm | |
- name: Install dependencies | |
shell: bash | |
run: npm ci | |
- name: Install node packages | |
run: | | |
npm ci | |
- name: Lint README.md | |
run: npm run lint:check | |
- name: Run Prettier check | |
run: npm run prettier:check |