29 lines
504 B
YAML
29 lines
504 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
if: github.repository_owner == 'w0rng'
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
check-latest: true
|
|
cache: 'npm'
|
|
|
|
- name: npm run lint
|
|
run: |
|
|
cd src
|
|
npm ci
|
|
npm run lint
|