- Update all non-major dependencies with digest and pinDigest #768
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Cache dependencies | |
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-npm-dependencies-${{ hashFiles('package.lock') }} | |
restore-keys: ${{ runner.os }}-npm-dependencies | |
- name: Set up node | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version: 22.4.1 | |
- name: Instal npm dependencies | |
run: npm clean-install | |
- name: Run JS linter | |
run: npm run lint |