Skip to content

Commit b23b920

Browse files
committed
Use GitHub actions for CI
1 parent 13ce508 commit b23b920

7 files changed

Lines changed: 100 additions & 65 deletions

File tree

.github/workflows/ci.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
schedule:
11+
- cron: '0 0 * * *'
12+
13+
jobs:
14+
build:
15+
name: ${{ matrix.os }} / Cabal ${{ matrix.cabal }} / GHC ${{ matrix.ghc }}
16+
runs-on: ${{ matrix.os }}
17+
18+
strategy:
19+
matrix:
20+
os:
21+
- ubuntu-16.04
22+
cabal:
23+
- 3.2
24+
ghc:
25+
- 7.4.1
26+
- 7.4.2
27+
- 7.6.1
28+
- 7.6.2
29+
- 7.6.3
30+
- 7.8.1
31+
- 7.8.2
32+
- 7.8.3
33+
- 7.8.4
34+
- 7.10.1
35+
- 7.10.2
36+
- 7.10.3
37+
- 8.0.1
38+
- 8.0.2
39+
- 8.2.1
40+
- 8.2.2
41+
- 8.4.1
42+
- 8.4.2
43+
- 8.4.3
44+
- 8.4.4
45+
- 8.6.1
46+
- 8.6.2
47+
- 8.6.3
48+
- 8.6.4
49+
- 8.6.5
50+
- 8.8.1
51+
- 8.8.2
52+
- 8.8.3
53+
- 8.8.4
54+
- 8.10.1
55+
- 8.10.2
56+
include:
57+
- os: macos-latest
58+
cabal: 3.2
59+
ghc: 8.10.2
60+
- os: windows-latest
61+
cabal: 3.2
62+
ghc: 8.10.2
63+
steps:
64+
- uses: actions/checkout@v2
65+
- uses: actions/setup-haskell@v1
66+
with:
67+
cabal-version: ${{ matrix.cabal }}
68+
ghc-version: ${{ matrix.ghc }}
69+
70+
- name: Install dependencies
71+
run: |
72+
cabal update
73+
cabal build --only-dependencies --enable-tests --enable-benchmarks
74+
- name: Build
75+
run: cabal build --enable-tests --enable-benchmarks all
76+
- name: Run tests
77+
run: cabal test all --test-show-details=direct
78+
env:
79+
HSPEC_OPTIONS: --color

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/dist/
2-
.stack-work/
2+
/dist-newstyle/
3+
/.stack-work/

.travis.yml

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

cabal.project

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
packages:
2+
strip.cabal
3+
4+
package strip
5+
ghc-options: -Werror

stack.yaml

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1 @@
1-
# For more information, see: http://docs.haskellstack.org/en/stable/yaml_configuration.html
2-
3-
# Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2)
4-
resolver: lts-8.20
5-
6-
# Local packages, usually specified by relative directory name
7-
packages:
8-
- '.'
9-
10-
# Packages to be pulled from upstream that are not in the resolver (e.g., acme-missiles-0.3)
11-
extra-deps: []
12-
13-
# Override default flag values for local packages and extra-deps
14-
flags: {}
15-
16-
# Extra package databases containing global packages
17-
extra-package-dbs: []
18-
19-
# Control whether we use the GHC we find on the path
20-
# system-ghc: true
21-
22-
# Require a specific version of stack, using version ranges
23-
# require-stack-version: -any # Default
24-
# require-stack-version: >= 1.0.0
25-
26-
# Override the architecture used by stack, especially useful on Windows
27-
# arch: i386
28-
# arch: x86_64
29-
30-
# Extra directories used by stack for building
31-
# extra-include-dirs: [/path/to/dir]
32-
# extra-lib-dirs: [/path/to/dir]
33-
34-
# Allow a newer minor version of GHC than the snapshot specifies
35-
# compiler-check: newer-minor
1+
resolver: lts-16.27

stack.yaml.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file was autogenerated by Stack.
2+
# You should not edit this file by hand.
3+
# For more information, please see the documentation at:
4+
# https://docs.haskellstack.org/en/stable/lock_files
5+
6+
packages: []
7+
snapshots:
8+
- completed:
9+
size: 533252
10+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/16/27.yaml
11+
sha256: c2aaae52beeacf6a5727c1010f50e89d03869abfab6d2c2658ade9da8ed50c73
12+
original: lts-16.27

strip.cabal

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
cabal-version: 1.12
22

3-
-- This file has been generated from package.yaml by hpack version 0.33.0.
3+
-- This file has been generated from package.yaml by hpack version 0.34.3.
44
--
55
-- see: https://github.com/sol/hpack
6-
--
7-
-- hash: 4c8e84369d0009b342748184ffb522b887c003d7967d469bf9bd74fa4f3b1696
86

97
name: strip
108
version: 0.0.0

0 commit comments

Comments
 (0)