-
-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (37 loc) · 1.04 KB
/
ci-native.yaml
File metadata and controls
43 lines (37 loc) · 1.04 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
name: 🧪 Tests (Native)
# Trigger the workflow on push or pull request, but only for the main branch
on:
pull_request:
push:
branches: [main]
jobs:
stack:
name: 🖥️ ${{ matrix.os }} 🏭 GHC ${{ matrix.ghc }} 📚 Stack ${{ matrix.stack }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
stack:
- "2.5.1"
ghc:
- "8.10.4"
os:
- macos-10.15
- ubuntu-18.04
- ubuntu-20.04
steps:
- uses: actions/checkout@v2
name: 📤 Checkout
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/main'
- uses: haskell/actions/setup@v1
name: 🧱 Set up Haskell Stack
with:
ghc-version: ${{ matrix.ghc }}
stack-version: ${{ matrix.stack }}
- uses: actions/cache@v2
name: 🗄️ Cache ~/.stack
with:
path: ~/.stack
key: ${{ matrix.os }}-${{ matrix.ghc }}-stack-ci-2
- name: 🧪 Test
run: |
stack test --no-nix