Update docs and config for rules and keywords #734
Workflow file for this run
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
--- | |
name: Website | |
on: | |
pull_request: | |
paths: | |
- website/** | |
- .github/workflows/website.yml | |
push: | |
branches-ignore: | |
- dependabot/** | |
paths: | |
- website/** | |
- .github/workflows/website.yml | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
persist-credentials: false | |
- name: ⎔ Setup node | |
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | |
with: | |
cache: npm | |
cache-dependency-path: website/package-lock.json | |
- name: 📥 Download deps | |
run: | | |
cd website | |
npm ci | |
- name: Run build | |
run: | | |
cd website | |
npm run build | |
- name: Run HTMLHint (SARIF) | |
run: | | |
cd website | |
npm run htmlhint-sarif || true | |
# Continue even if HTMLHint finds issues | |
- name: Upload SARIF file | |
uses: github/codeql-action/upload-sarif@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3 | |
with: | |
sarif_file: website/htmlhint.sarif | |
category: HTMLHint | |
if: always() |