Skip to content

Commit

Permalink
Add CI job which simply cabal test
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim committed Nov 17, 2024
1 parent adc8883 commit b668ffc
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b668ffc

Please sign in to comment.