Lock file maintenance #3758
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: format & lint | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
format-and-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: setup node | |
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4 | |
with: | |
node-version-file: ".nvmrc" | |
cache: "npm" | |
- name: setup npm | |
run: | | |
./npm_use.sh && | |
npm --version && | |
npm list -g --depth 0 | |
- name: install dependencies | |
run: npm ci | |
- name: knip | |
run: npm run knip | |
- name: prettier | |
run: npm run format | |
- name: type-check | |
run: npm run check | |
- name: eslint | |
run: npm run lint | |
- name: stylelint | |
run: npm run stylelint | |
- name: cspell | |
run: npm run lint:spelling |