-
Notifications
You must be signed in to change notification settings - Fork 261
59 lines (47 loc) · 1.5 KB
/
call.test-spec-haskell.yml
File metadata and controls
59 lines (47 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Reusable Workflow | Test Spec Haskell
on:
workflow_call:
jobs:
test-spec-haskell:
name: Test Spec Haskell - Linux - ${{ matrix.compiler-name }}
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- compiler-name: ghc-9.4
dev-shell-name: ci-spec-ghc94
fail-fast: false
defaults:
run:
shell: nix develop .#${{ matrix.dev-shell-name }} -c bash -xe {0}
steps:
- uses: actions/checkout@v4
- name: Setup workflow base
id: base
uses: ./.github/actions/setup-workflow-base
with:
package-name: spec-haskell
cache-key-prefix: spec-haskell-${{ matrix.compiler-name }}-
dev-shell-name: ${{ matrix.dev-shell-name }}
- name: Run cabal update
if: steps.base.outputs.cache-hit != 'true'
run: |
cabal v2-update
cabal --version
ghc --version
- name: Run lint
if: steps.base.outputs.cache-hit != 'true'
run: make lint
working-directory: packages/spec-haskell
- name: Run build
if: steps.base.outputs.cache-hit != 'true'
run: make build
working-directory: packages/spec-haskell
- name: Run tests
if: steps.base.outputs.cache-hit != 'true'
run: make test
working-directory: packages/spec-haskell
- name: Make haddock docs
if: steps.base.outputs.cache-hit != 'true'
run: make docs-haddock
working-directory: packages/spec-haskell