From 28796695afce5d02b8164af5a9189a16dcff8c67 Mon Sep 17 00:00:00 2001 From: Thomas Preisner Date: Thu, 2 Jan 2025 23:09:06 +0100 Subject: [PATCH] Add github actions workflow for CI tests --- .github/workflows/test.yml | 17 +++++++++++++++++ flake.nix | 1 + 2 files changed, 18 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..2d29d94 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,17 @@ +name: "Test" +on: + pull_request: + push: + branches: + - main + schedule: + - cron: '42 7 * * *' +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install Nix + uses: cachix/install-nix-action@v30 + - name: Execute unit tests + run: nix flake check diff --git a/flake.nix b/flake.nix index abac9b8..476a7d4 100644 --- a/flake.nix +++ b/flake.nix @@ -59,6 +59,7 @@ treefmt = { programs = { + actionlint.enable = true; alejandra.enable = true; }; settings.global.excludes = [