34 lines
544 B
YAML
34 lines
544 B
YAML
|
|
name: Lint
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [ "main" ]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
lfs: true
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20.x'
|
|
cache: 'yarn'
|
|
|
|
- name: Install dependencies
|
|
run: yarn install --immutable --immutable-cache --check-cache
|
|
|
|
- name: Build
|
|
run: yarn build
|
|
|
|
- name: Lint
|
|
run: yarn lint
|