From 4deac00ab389b39575eda7907b9bdc04a00c6f32 Mon Sep 17 00:00:00 2001 From: Frankie Roberto Date: Sun, 19 May 2024 11:46:57 +0100 Subject: [PATCH] Add test build (#123) This does a test on all pull requests, to make sure that the site actually builds. --- .github/workflows/tests.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..0fbc5d8 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,20 @@ +name: tests + +on: pull_request + +jobs: + test_build: + name: Test build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + - name: Install dependencies + run: npm ci + - name: Build with Eleventy + run: npm run-script build