From 802aaa72575bdca30bb7f41040e3fb8fb02d1df1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20M=C3=A4hr?= Date: Sat, 2 Nov 2024 16:37:26 +0100 Subject: [PATCH] ci: add jekyll build to ci (#172) * 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> --- .github/workflows/ci.yml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00834444..806d9853 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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}" \ No newline at end of file + 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