Skip to content

Commit f80d0f8

Browse files
Checking to see if Github's CI works out of the box
1 parent 1c125a7 commit f80d0f8

File tree

2 files changed

+56
-55
lines changed

2 files changed

+56
-55
lines changed

.circleci/config.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflow/ci.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: CI
2+
on:
3+
- push
4+
- pull_request
5+
6+
defaults:
7+
run:
8+
shell: bash
9+
10+
jobs:
11+
main:
12+
name: GHC ${{ matrix.ghc }} on ${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
14+
15+
# https://github.com/orgs/community/discussions/57827
16+
if: github.event_name != 'pull_request' ||
17+
github.event.pull_request.head.repo.full_name !=
18+
github.event.pull_request.base.repo.full_name
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
os: [ubuntu-latest]
24+
ghc:
25+
- "9.0"
26+
- "9.2"
27+
- "9.4"
28+
- "9.6"
29+
- "9.8"
30+
- "9.10"
31+
32+
steps:
33+
34+
- uses: actions/checkout@v4
35+
36+
- uses: haskell-actions/setup@v2
37+
id: setup-haskell-cabal
38+
with:
39+
ghc-version: ${{ matrix.ghc }}
40+
41+
- uses: actions/cache@v4
42+
name: Cache cabal stuff
43+
with:
44+
path: |
45+
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
46+
dist-newstyle
47+
key: ${{ runner.os }}-${{ matrix.ghc }}
48+
49+
- name: Cabal version
50+
run: |
51+
cabal --version
52+
53+
- name: Build & Test
54+
run: |
55+
cabal build --enable-tests
56+
cabal test --enable-tests --test-show-details=direct properties

0 commit comments

Comments
 (0)