mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-10 20:02:26 +00:00
- Pin actions/checkout to SHA for v5.0.0 - Pin docker/setup-qemu-action to SHA for v3.6.0 - Pin docker/setup-buildx-action to SHA for v3.11.1 - Pin docker/login-action to SHA for v3.6.0 - Pin actions/setup-go to SHA for v6.0.0 - Pin actions/upload-artifact to SHA for v4.6.2 - Pin actions/setup-node to SHA for v6.0.0 - Pin actions/stale to SHA for v10.1.0
36 lines
892 B
YAML
36 lines
892 B
YAML
name: ESLint
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '**/*.js'
|
|
- '**/*.jsx'
|
|
- '**/*.ts'
|
|
- '**/*.tsx'
|
|
- '.eslintrc*'
|
|
- 'package.json'
|
|
- 'yarn.lock'
|
|
- 'pnpm-lock.yaml'
|
|
- 'package-lock.json'
|
|
|
|
jobs:
|
|
Linter:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
|
with:
|
|
node-version: '22'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Create build file
|
|
run: npm run set:oss
|
|
|
|
- name: Run ESLint
|
|
run: npx eslint . --ext .js,.jsx,.ts,.tsx
|