Skip to content

Commit

Permalink
ci: add jekyll build to ci (#172)
Browse files Browse the repository at this point in the history
* ci: add jekyll build to ci

* style: Update .github/workflows/ci.yml

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* ci: simplify checkout step in CI workflow

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
maehr and coderabbitai[bot] authored Nov 2, 2024
1 parent 797b952 commit 802aaa7
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -26,4 +21,22 @@ jobs:
run: npm ci # Using npm ci for a clean install based on package-lock.json

- name: Check Formatting
run: npx prettier --check "**/*.{js,css,md,html}"
run: npx prettier --check "**/*.{js,css,md,html}"

jekyll:
needs: prettier
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
with:
bundler-cache: true
cache-version: 0

- name: Build with Jekyll
run: bundle exec jekyll build
env:
JEKYLL_ENV: production

0 comments on commit 802aaa7

Please sign in to comment.