From 1cc8c9993e1f714e437b6b2ee06b5b965d524d99 Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Fri, 26 Apr 2024 20:09:41 -0300 Subject: [PATCH] add test workflow --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..6caa60a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: test + +on: + push: + branches: + - master + - main + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: 'recursive' + - uses: cachix/install-nix-action@v26 + - uses: DeterminateSystems/magic-nix-cache-action@v4 + - name: Ensure flake.lock was committed + run: ls flake.lock + - run: nix flake check -L + - run: nix build -L + - run: glistix deps download + shell: nix develop --command bash -e {0} + - run: glistix test + shell: nix develop --command bash -e {0} + - run: glistix format --check src test + shell: nix develop --command bash -e {0}