-
Notifications
You must be signed in to change notification settings - Fork 9
46 lines (41 loc) · 1.28 KB
/
coverage.yaml
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
on: [push, pull_request]
name: Coverage
jobs:
coveralls:
name: data-interval
runs-on: ${{ matrix.os }}
env:
STACK_YAML: ${{ matrix.stack_yaml }}
strategy:
matrix:
include:
- ghc: '8.10.2'
os: ubuntu-latest
stack_yaml: 'stack-8.10.2.yaml'
flags: ''
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
enable-stack: true
stack-version: 'latest'
stack-no-global: true
stack-setup-ghc: true
- uses: actions/cache@v1
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.ghc }}-stack
- name: Build
run: stack build --test --no-run-tests --coverage ${{ matrix.flags }}
- name: Test
run: stack test --coverage ${{ matrix.flags }}
- name: Coveralls
continue-on-error: true
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
curl -L https://github.com/lehins/stack-hpc-coveralls/releases/download/v0.0.6.0/shc.tar.gz | tar xz shc
./shc --repo-token="$COVERALLS_REPO_TOKEN" data-interval test-interval