forked from airalab/hs-web3
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 852 Bytes
/
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
name: CI
on:
pull_request: {}
push:
branches:
- master
- rc/*
jobs:
Tests:
name: Test ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Setup latest stack
uses: haskell/actions/setup@v2
with:
enable-stack: true
stack-version: 'latest'
- name: Cache .stack-root
uses: actions/cache@v1
env:
cache-name: stack-root
with:
path: .stack-root
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('stack.yaml') }}
- name: Test
shell: bash
run: |
set -ex
export STACK_ROOT=$(pwd)/.stack-root
stack test --haddock --no-haddock-deps