tt-rss/.github/workflows/javascript-code-quality.yml
dependabot[bot] 8f070c47a8
GitHub Actions: Bump actions/cache from 4 to 5 (#212)
Bumps [actions/cache](https://github.com/actions/cache) from 4 to 5.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-15 08:33:13 -06:00

61 lines
1.3 KiB
YAML

name: JavaScript Code Quality
on:
pull_request:
paths:
- 'js/**.js'
- 'plugins/**.js'
- 'eslint.config.js'
- 'package.json'
- 'package-lock.json'
# Allow manual triggering
workflow_dispatch:
# Allow other workflows (e.g. Publish) to invoke this one.
workflow_call:
env:
fail-fast: true
permissions:
contents: read
jobs:
eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: lts/*
- name: Restore Node.js dependencies cache
uses: actions/cache/restore@v5
id: cache-restore
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
if: steps.cache-restore.outputs.cache-hit != 'true'
run: npm install
- name: Save Node.js dependencies cache
if: steps.cache-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v5
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Run ESLint
run: npm run lint:js