Skip to content
Merged

CI #3

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
pull_request:
branches:
- main

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Haskell Stack
uses: haskell/actions/setup@v2
with:
enable-stack: true

- name: Cache Stack dependencies
uses: actions/cache@v4
with:
path: ~/.stack
key: stack-${{ runner.os }}-${{ hashFiles('stack.yaml', 'package.yaml') }}
restore-keys: |
stack-${{ runner.os }}-

- name: Install dependencies
run: stack build --only-dependencies

- name: Build project
run: stack build

- name: Run tests
run: stack test
Loading