Skip to content

Admin panel

Admin panel #14

Workflow file for this run

name: Javascript Lint
on:
pull_request:
branches: [ "main" ]
types: [opened, synchronize, reopened, ready_for_review]
paths:
- '**.js'
- '**.vue'
- 'package.json'
- 'package-lock.json'
jobs:
lint-js:
name: Lint JS
timeout-minutes: 10
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache npm cache and node_modules
uses: actions/cache@v3
with:
path: |
~/.npm
node_modules
key: ${{ runner.os }}-npm-cache-${{ hashFiles('package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-cache
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'npm'
- name: Install npm dependencies
run: npm ci
- name: Run JS linter
run: npm run lint