From a8b03945e46c437aaf4ef6787ece933045dc41ce Mon Sep 17 00:00:00 2001 From: Vehbi Sinan Tunalioglu Date: Mon, 18 Mar 2024 18:45:25 +0800 Subject: [PATCH] test: add GitHub workflow to test codebase on each push to PR --- .github/workflows/check.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/check.yaml diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml new file mode 100644 index 0000000..2137b34 --- /dev/null +++ b/.github/workflows/check.yaml @@ -0,0 +1,25 @@ +name: "Check Codebase" + +on: + pull_request: + workflow_dispatch: + +jobs: + check: + runs-on: "ubuntu-latest" + + steps: + - name: "Checkout Codebase" + uses: "actions/checkout@v4" + + - name: "Install nix" + uses: "cachix/install-nix-action@v25" + with: + nix_path: "nixpkgs=channel:nixos-23.11" + + - name: "Use magic Nix cache" + uses: "DeterminateSystems/magic-nix-cache-action@v3" + + - name: "Check" + run: | + nix-shell --run "dev-test-build"