Skip to content

Commit

Permalink
ci: linting added (#9)
Browse files Browse the repository at this point in the history
* ci: linting added

* ci: fix ci path
  • Loading branch information
maehr authored Aug 14, 2024
1 parent bc1f4d9 commit 9ce5138
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/quarto-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
on:
pull_request:
branches:
- main
push:
branches:
- main
Expand All @@ -12,6 +15,25 @@ permissions:
pages: write

jobs:
lint:
name: Lint with Prettier
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'

- name: Install dependencies
run: npm install

- name: Check for linting errors
run: npm run check

build-deploy:
runs-on: ubuntu-latest

Expand Down Expand Up @@ -53,7 +75,7 @@ jobs:
- name: Render Quarto Project
uses: quarto-dev/quarto-actions/render@v2
with:
path: manuscript
path: .
to: html

- name: JamPack
Expand All @@ -78,6 +100,7 @@ jobs:

# NOTE: If Publishing to GitHub Pages, set the permissions correctly (see top of this yaml)
- name: Publish to GitHub Pages (and render)
if: github.event_name != 'pull_request'
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
Expand Down

0 comments on commit 9ce5138

Please sign in to comment.