amnezia-wg-easy/.github/workflows/lint.yml
Philip H 85913b71ed
CI: no cache-dependency-path
it's useless and can lead to confusion
2024-06-16 16:25:51 +02:00

29 lines
525 B
YAML

name: Lint
on:
push:
branches:
- master
- production
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
if: github.repository_owner == 'wg-easy'
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