mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
34 lines
688 B
YAML
34 lines
688 B
YAML
name: Lint
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
cache: 'npm'
|
|
|
|
- name: Cache Node.js modules
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: client/node_modules
|
|
key: ${{ runner.os }}-node-${{ hashFiles('client/package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-node-
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Run linter
|
|
run: npm run lint
|