-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (38 loc) · 1.19 KB
/
analysis-ci.yml
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
name: Analysis CI
on:
push:
branches: [ "main", "2cabal" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: haskell-actions/setup@v2
with:
ghc-version: '9.4.8'
cabal-version: '3.10'
ghcup-release-channel: 'https://raw.githubusercontent.com/haskell/ghcup-metadata/develop/ghcup-0.0.8.yaml'
- name: Cache
uses: actions/cache@v3
env:
cache-name: cache-cabal
with:
path: ~/.cabal
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
working-directory: maf2-analysis
run: cabal update && cabal install --overwrite-policy=always hspec-discover
- name: Build
working-directory: maf2-analysis
run: cabal build
- name: Run tests
working-directory: maf2-analysis
run: cabal test --test-show-details=always --test-options="--color"