From b668ffcfbbb37d3c4e0ecd3a41bafed4c1169d2d Mon Sep 17 00:00:00 2001 From: Bodigrim Date: Sun, 17 Nov 2024 21:46:17 +0000 Subject: [PATCH] Add CI job which simply cabal test --- .github/workflows/ci-tests.yml | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/ci-tests.yml diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml new file mode 100644 index 00000000..461b77d6 --- /dev/null +++ b/.github/workflows/ci-tests.yml @@ -0,0 +1,37 @@ +name: ci-tests +on: + push: + branches: + - master + pull_request: {} # Validate all PRs + +defaults: + run: + shell: bash + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: true + matrix: + os: [ubuntu-latest] + ghc: ['9.10'] + steps: + - uses: actions/checkout@v4 + - uses: haskell-actions/setup@v2 + id: setup-haskell-cabal + with: + ghc-version: ${{ matrix.ghc }} + - name: Update cabal package database + run: cabal update + - uses: actions/cache@v3 + name: Cache cabal stuff + with: + path: | + ${{ steps.setup-haskell-cabal.outputs.cabal-store }} + dist-newstyle + key: ${{ runner.os }}-${{ matrix.ghc }} + - name: Test + run: | + cabal test --enable-tests --enable-benchmarks --test-show-details=direct all