From 8b4f0a81ceea88420162fcc065f256545658b1d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20M=C3=A4hr?= Date: Wed, 30 Oct 2024 18:07:49 +0100 Subject: [PATCH 1/3] ci: add jekyll build to ci --- .github/workflows/ci.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00834444..4278503a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,4 +26,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 From 729a3dec16f7943189bb47ca862980247f2a52e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20M=C3=A4hr?= Date: Wed, 30 Oct 2024 19:56:00 +0100 Subject: [PATCH 2/3] style: Update .github/workflows/ci.yml Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4278503a..7ab3dceb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: - name: Check Formatting run: npx prettier --check "**/*.{js,css,md,html}" - + jekyll: needs: prettier runs-on: ubuntu-22.04 From 4ea229b22a1855e09dd9ba9b9145fbb906fad1d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20M=C3=A4hr?= Date: Fri, 1 Nov 2024 19:13:55 +0100 Subject: [PATCH 3/3] ci: simplify checkout step in CI workflow --- .github/workflows/ci.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ab3dceb..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