Add job to lint posts on push and PR #3
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: Lint Posts | |
on: | |
push: | |
branches: | |
- '**' # Runs on pushes to all branches | |
pull_request: | |
branches: | |
- 'gh-pages' # Runs when a PR targets the gh-pages branch | |
jobs: | |
lint-posts: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: npm | |
- name: Run install | |
uses: borales/[email protected] | |
with: | |
cmd: install | |
- name: Run lint | |
uses: borales/[email protected] | |
with: | |
cmd: lint |