Skip to content

Commit 8a3a3ca

Browse files
Add GitHub Actions CI
1 parent 7b495b4 commit 8a3a3ca

File tree

6 files changed

+70
-5
lines changed

6 files changed

+70
-5
lines changed

.github/workflow/ci.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- develop
8+
- main
9+
10+
jobs:
11+
cabal:
12+
name: "Cabal: GHC ${{ matrix.ghc }}"
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
ghc: ['8.2.2', '8.4.4', '8.6.5', '8.8.4', '8.10.2']
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
- name: Setup Haskell
21+
uses: actions/[email protected]
22+
with:
23+
ghc-version: ${{ matrix.ghc }}
24+
cabal-version: latest
25+
- name: Build
26+
run: cabal new-build --enable-tests --enable-benchmarks
27+
- name: Test
28+
run: cabal new-test --enable-tests
29+
30+
stack:
31+
name: "Stack: GHC ${{ matrix.ghc }}"
32+
runs-on: ubuntu-latest
33+
strategy:
34+
matrix:
35+
ghc: ['8.2.2', '8.4.4', '8.6.5', '8.8.4', '8.10.2']
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v2
39+
- name: Setup Haskell
40+
uses: actions/[email protected]
41+
with:
42+
ghc-version: ${{ matrix.ghc }}
43+
cabal-version: latest
44+
enable-stack: true
45+
stack-version: latest
46+
- name: Cache ~/.stack
47+
uses: actions/cache@v1
48+
with:
49+
path: ~/.stack
50+
key: ${{ runner.os }}-${{ matrix.ghc }}-stack
51+
- name: Build
52+
run: stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
53+
env:
54+
STACK_YAML: stack-${{ matrix.ghc }}.yaml
55+
- name: Test
56+
run: stack test --system-ghc
57+
env:
58+
STACK_YAML: stack-${{ matrix.ghc }}.yaml

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ following conventions:
2828

2929
### Non-Breaking
3030

31-
* Remove Travis CI
31+
* Use GitHub Actions instead of Travis CI
3232

3333
## 0.5.0.0 (2020-11-08)
3434

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Queue Sheet
22

3+
[![GitHub CI](https://github.com/ExtremaIS/queue-sheet-haskell/workflows/CI/badge.svg?branch=main)](https://github.com/ExtremaIS/queue-sheet-haskell/actions)
4+
35
* [Overview](#overview)
46
* [Requirements](#requirements)
57
* [Installation](#installation)

stack-8.10.2.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
resolver: nightly-2020-11-23
2+
3+
packages:
4+
- .

stack-8.8.4.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
resolver: lts-16.23
2+
3+
packages:
4+
- .

stack.yaml

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

stack.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
stack-8.8.4.yaml

0 commit comments

Comments
 (0)