Skip to content

Commit

Permalink
add CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
owestphal committed Jul 7, 2023
1 parent a235f02 commit cf979e9
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/haskell.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Haskell CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Cache Stack
id: cache-stack-unix
uses: actions/cache@v3
with:
path: ~/.stack
key: ubuntu-latest-stack-home-${{ hashFiles('stack.yaml') }}-${{ hashFiles('package.yaml') }}

- name: Setup stack
uses: haskell/actions/setup@v1
with:
enable-stack: true
stack-no-global: true


- name: Install dependencies
run: |
set -ex
stack --no-terminal --install-ghc test --bench --only-dependencies
set +ex
- name: Build
run: |
set -ex
stack --no-terminal $ARGS test --bench --no-run-benchmarks --haddock --no-haddock-deps
set +ex

0 comments on commit cf979e9

Please sign in to comment.