Skip to content

- January 2024 batch update #585

- January 2024 batch update

- January 2024 batch update #585

name: Test & lint JS stuff
on:
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
- ready_for_review
paths:
- '**.js'
- '**.vue'
- 'package.json'
- 'package-lock.json'
jobs:
test-and-lint-js:
name: Test & lint JS stuff
timeout-minutes: 10
if: github.event.pull_request.draft == false
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- name: Cache dependencies
uses: actions/[email protected]
with:
path: node_modules
key: ${{ runner.os }}-npm-dependencies-${{ hashFiles('package.lock') }}
restore-keys: ${{ runner.os }}-npm-dependencies
- name: Set up node
uses: actions/[email protected]
with:
node-version: 20
- name: Instal npm dependencies
run: npm clean-install
- name: Run JS linter
run: npm run lint