Skip to content

Commit

Permalink
Attempt to make CI go
Browse files Browse the repository at this point in the history
  • Loading branch information
hs-viktor committed Nov 1, 2021
1 parent 177002b commit 053a943
Show file tree
Hide file tree
Showing 7 changed files with 92 additions and 207 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
65 changes: 65 additions & 0 deletions .github/workflows/stack-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Tests
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
branches:
- support-ghc-9.2
- master

jobs:
build:
name: stack / ghc ${{ matrix.ghc }} / ${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest]
resolver:
[
"lts-18.14",
"lts-16.31",
"lts-14.27",
"lts-12.26",
"lts-11.22"
]
include:
- resolver: "lts-18.14"
ghc: "8.10.7"
ghv: "8.10"
- resolver: "lts-16.31"
ghc: "8.8.4"
ghv: "8.8"
- resolver: "lts-14.27"
ghc: "8.6.5"
ghv: "8.6"
- resolver: "lts-12.26"
ghc: "8.4.4"
ghv: "8.4"
- resolver: "lts-11.22"
ghc: "8.2.2"
ghv: "8.2"

steps:
- name: Setup GHC
uses: haskell/actions/setup@v1
with:
ghc-version: ${{ matrix.ghc }}
enable-stack: true

- name: Clone project
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles('stack.yaml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.resolver }}-
# This entirely avoids the caching of a GHC version.
- name: Build and run tests
run: "stack test --fast --no-terminal --resolver=${{ matrix.resolver }} --system-ghc --stack-yaml=stack-${{ matrix.ghv }}.yaml"
202 changes: 0 additions & 202 deletions .travis.yml

This file was deleted.

12 changes: 12 additions & 0 deletions stack-8.10.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
resolver: lts-18.14
install-ghc: true
system-ghc: false
flags: {}
packages:
- '.'
extra-deps:
# Using an outdated shelly, forces an outdated 'time', which breaks unix, directory, ...
# Instead, we don't build with 8.8 or 8.10 on Windows.
# - shelly-1.8.0 # 1.8.1 and 1.9.0 are broken for windows: see https://github.com/yesodweb/Shelly.hs/issues/176
# - time-1.8.0.4
- regex-pcre-0.95.0.0
4 changes: 2 additions & 2 deletions stack-8.4.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
resolver: lts-12.22
resolver: lts-12.26
install-ghc: true
flags: {}
packages:
- '.'
system-ghc: false
extra-deps:
- shelly-1.8.0 # 1.8.1 is broken for windows: see https://github.com/yesodweb/Shelly.hs/issues/176
- shelly-1.8.0 # 1.8.1 and 1.9.0 are broken for windows: see https://github.com/yesodweb/Shelly.hs/issues/176
- regex-tdfa-1.3.1.0
- regex-base-0.94.0.0
- regex-pcre-builtin-0.95.1.1.8.43
4 changes: 2 additions & 2 deletions stack-8.6.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
resolver: lts-14.21
resolver: lts-14.27
install-ghc: true
system-ghc: false
flags: {}
packages:
- '.'
extra-deps:
- shelly-1.8.0 # 1.8.1 is broken for windows: see https://github.com/yesodweb/Shelly.hs/issues/176
- shelly-1.8.0 # 1.8.1 and 1.9.0 are broken for windows: see https://github.com/yesodweb/Shelly.hs/issues/176
- regex-tdfa-1.3.1.0
- regex-base-0.94.0.0
- regex-pcre-builtin-0.95.1.1.8.43
6 changes: 5 additions & 1 deletion stack-8.8.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
resolver: nightly-2020-01-25
resolver: lts-16.31
install-ghc: true
system-ghc: false
flags: {}
packages:
- '.'
extra-deps:
# Using an outdated shelly, forces an outdated 'time', which breaks unix, directory, ...
# Instead, we don't build with 8.8 or 8.10 on Windows.
# - shelly-1.8.0 # 1.8.1 and 1.9.0 are broken for windows: see https://github.com/yesodweb/Shelly.hs/issues/176
# - time-1.8.0.4
- regex-pcre-0.95.0.0

0 comments on commit 053a943

Please sign in to comment.