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 = [