From da35663c93092355851c42ab42aa78d48ad95d66 Mon Sep 17 00:00:00 2001 From: Daniel Rolls Date: Sat, 26 Oct 2024 21:28:31 +0100 Subject: [PATCH 1/2] Run tests via cabal --- .github/workflows/cabaltest.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/cabaltest.yml diff --git a/.github/workflows/cabaltest.yml b/.github/workflows/cabaltest.yml new file mode 100644 index 0000000..5a0f0d5 --- /dev/null +++ b/.github/workflows/cabaltest.yml @@ -0,0 +1,14 @@ +name: "Cabal test" +on: + pull_request: + push: +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v20 + with: + nix_path: nixpkgs=channel:nixos-unstable + - run: nix develop + - run: cabal v2-test From 26c33ce55271b619a71119944ce22c7649047fb5 Mon Sep 17 00:00:00 2001 From: Daniel Rolls Date: Sat, 26 Oct 2024 21:31:32 +0100 Subject: [PATCH 2/2] Pull in cabal updates before calling cabal --- .github/workflows/cabaltest.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cabaltest.yml b/.github/workflows/cabaltest.yml index 5a0f0d5..0413528 100644 --- a/.github/workflows/cabaltest.yml +++ b/.github/workflows/cabaltest.yml @@ -11,4 +11,5 @@ jobs: with: nix_path: nixpkgs=channel:nixos-unstable - run: nix develop + - run: cabal v2-update - run: cabal v2-test