🔖 v4.0.0 #917
Workflow file for this run
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] | |
jobs: | |
lint: | |
name: ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Cache node modules | |
uses: actions/cache@v3 | |
id: cache | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ./node_modules/ | |
key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build- | |
- name: Install Node 20 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install modules | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: npm ci | |
# Rule `import/resolver` requires the project to be built. Go figure. | |
- name: Build | |
run: npm run build | |
- name: Run Biome checks | |
run: npm run check |