Fixing the jshint.yaml to Run as Part of Workflows #1
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: JSHint | |
on: | |
push: | |
branches: | |
- f24 | |
pull_request: | |
branches: | |
- f24 | |
defaults: | |
run: | |
shell: bash | |
permissions: | |
contents: read | |
jobs: | |
jshint: | |
permissions: | |
checks: write | |
contents: read | |
name: JSHint | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
node: [16] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- run: cp install/package.json package.json | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: NPM Install | |
uses: bahmutov/npm-install@v1 | |
with: | |
useLockFile: false | |
- name: Run JSHint | |
run: npm run jshint |