From eeafffe3dac43a0a4eb3e03512f2182fc9b3b61f Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 13 Sep 2024 20:09:33 +0100 Subject: [PATCH] Re-add a test workflow for pull requests --- .../{main.yaml => build_deploy.yaml} | 0 .github/workflows/test.yaml | 27 +++++++++++++++++++ 2 files changed, 27 insertions(+) rename .github/workflows/{main.yaml => build_deploy.yaml} (100%) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/build_deploy.yaml similarity index 100% rename from .github/workflows/main.yaml rename to .github/workflows/build_deploy.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 00000000..63bde75a --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,27 @@ +--- +name: Test and Build + +on: + pull_request: + +jobs: + test_and_build: + runs-on: ubuntu-latest + + steps: + - uses: cachix/install-nix-action@v26 + with: + nix_path: nixpkgs=channel:nixos-unstable + + - uses: actions/checkout@v4 + + - name: Install dependencies + run: ./run ci:install + + - name: Run tests + run: ./run ci:test + + - name: Generate the website + run: | + ./run ci:build + tree output_prod