Add support for always
and except
#12
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: Documentation Checks | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'docs/**' | |
- '.github/workflows/docs.yml' | |
pull_request: | |
paths: | |
- 'docs/**' | |
- '.github/workflows/docs.yml' | |
jobs: | |
check_formatting: | |
runs-on: ubuntu-latest | |
name: Check Documentation Formatting | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
cache: 'npm' | |
cache-dependency-path: './docs/package-lock.json' | |
- name: Install dependencies | |
working-directory: ./docs | |
run: npm ci | |
- name: Check formatting | |
working-directory: ./docs | |
run: npm run format:check |