Skip to content

Commit 369c863

Browse files
committed
Add CI job which simply cabal test
1 parent adc8883 commit 369c863

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/ci-tests.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: ci-tests
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- ci2
7+
pull_request: {} # Validate all PRs
8+
9+
defaults:
10+
run:
11+
shell: bash
12+
13+
jobs:
14+
build:
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: true
18+
matrix:
19+
os: [ubuntu-latest]
20+
ghc: ['9.10']
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: haskell-actions/setup@v2
24+
id: setup-haskell-cabal
25+
with:
26+
ghc-version: ${{ matrix.ghc }}
27+
- name: Update cabal package database
28+
run: cabal update
29+
- uses: actions/cache@v3
30+
name: Cache cabal stuff
31+
with:
32+
path: |
33+
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
34+
dist-newstyle
35+
key: ${{ runner.os }}-${{ matrix.ghc }}
36+
- name: Test
37+
run: |
38+
cabal build all
39+
cabal test --enable-tests --enable-benchmarks --test-show-details=direct all

0 commit comments

Comments
 (0)