Merge pull request #111 from lunarcloud/lunarcloud-patch-1 #191
This file contains hidden or 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
# This workflow will run the three lint tools | |
name: Lint | |
on: | |
push: | |
branches: [ "development", "main" ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
lint: | |
name: Run Code Quality Checks | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
security-events: write | |
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Tools | |
run: npm ci | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Lint JavaScript | |
if: ${{ ! cancelled() }} | |
run: npm run eslint | |
- name: Lint HTML | |
if: ${{ ! cancelled() }} | |
run: npm run htmllint | |
- name: Lint CSS | |
if: ${{ ! cancelled() }} | |
run: npm run csslint | |