-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.14 KB
/
build.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
46
47
48
name: build
on:
push:
pull_request:
branches: ["master"]
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
ghc: ["8.10.7"]
cabal: ["3.6"]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Haskell
uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- name: Set up HLint
uses: haskell-actions/hlint-setup@v2
- name: Run HLint
uses: haskell-actions/hlint-run@v2
with:
fail-on: warning
- name: Check for Ormolu formatting
uses: haskell-actions/run-ormolu@v14
with:
pattern: "**/*.hs"
version: 0.3.1.0
- name: Install LLVM
run: sudo apt install -y llvm-9 llvm-9-dev
- name: Build project
run: cabal build
- name: Run tests
run: cabal test --test-show-details=direct --test-options "--color=always"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}