From 25ed2b76c6b4e165dc90d4db33a6d1b21b0439e3 Mon Sep 17 00:00:00 2001 From: Tim Sutton Date: Sat, 16 Dec 2023 20:19:00 +0200 Subject: [PATCH] Added build and test gh workflows --- .github/workflows/nix-build.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nix-build.yml b/.github/workflows/nix-build.yml index 31cb1b2a..e577afd0 100644 --- a/.github/workflows/nix-build.yml +++ b/.github/workflows/nix-build.yml @@ -1,4 +1,4 @@ -name: 📖 Documentation +name: 📖 Test Documentation on: pull_request: push: @@ -14,6 +14,7 @@ on: workflow_dispatch: jobs: + # Runs when we create or update a PR tests: runs-on: ubuntu-latest steps: @@ -24,6 +25,16 @@ jobs: - uses: DeterminateSystems/magic-nix-cache-action@v2 - run: nix-shell --run "./english_build.sh" + # Runs when we merge a PR + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v20 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: DeterminateSystems/magic-nix-cache-action@v2 + - run: nix-shell --run "./english_build.sh" #jobs: # tests: