From 7b419025608b7b116afd78f2fddf7c5bedd55cd7 Mon Sep 17 00:00:00 2001 From: Vehbi Sinan Tunalioglu Date: Tue, 23 Apr 2024 08:50:30 +0800 Subject: [PATCH] test: run tests and build on every 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..b92703b --- /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@v26" + with: + nix_path: "nixpkgs=channel:nixos-23.11" + + - name: "Use magic Nix cache" + uses: "DeterminateSystems/magic-nix-cache-action@v4" + + - name: "Check Application" + run: | + nix-shell --pure --run "dev-test-build"