Skip to content

Commit

Permalink
Integrating jshint into our github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
khalifat3 committed Oct 30, 2024
1 parent e716441 commit dc3d914
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/jshint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: JSHint

on:
push:
branches:
- main
pull_request:
branches:
- main

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

0 comments on commit dc3d914

Please sign in to comment.