Skip to content

Commit

Permalink
Merge pull request #137 from qrilka/github-actions
Browse files Browse the repository at this point in the history
Github actions
  • Loading branch information
qrilka authored Mar 31, 2021
2 parents 397c3c9 + 069f78d commit 73d75c2
Show file tree
Hide file tree
Showing 11 changed files with 60 additions and 135 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on:
pull_request:
push:
branches:
- master

jobs:
build:
name: CI
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
stack-yaml: stack-lts-12.yaml
extra-args: ""
- os: ubuntu-latest
stack-yaml: stack-lts-14.yaml
extra-args: ""
- os: ubuntu-latest
stack-yaml: stack-lts-14.yaml
extra-args: "--flag xlsx:microlens"
- os: ubuntu-latest
stack-yaml: stack-lts-16.yaml
extra-args: ""
- os: ubuntu-latest
stack-yaml: stack-lts-17.yaml
extra-args: ""

steps:
- name: Clone project
uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.stack
key: ${{ runner.os }}-${{ hashFiles(matrix.stack-yaml) }}-${{ matrix.extra-args }}
- name: Build and run tests
shell: bash
run: |
set -ex
stack upgrade
stack --version
stack test --fast --stack-yaml=${{ matrix.stack-yaml }} ${{ matrix.extra-args }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ dist
*.*~
specs
samples
.stack-work
.stack-work
*.lock
123 changes: 0 additions & 123 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.markdown
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Unreleased
------------
* dropped support for GHC 8.0.* and 8.2.* and added support for GHC 8.10.*

0.8.3
------------
* compatibility with lens-5.0
Expand Down
3 changes: 0 additions & 3 deletions stack-lts-11.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion stack-lts-12.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
resolver: lts-12.13
resolver: lts-12.26
packages:
- '.'
2 changes: 1 addition & 1 deletion stack-lts-14.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
resolver: lts-14.12
resolver: lts-14.27
packages:
- '.'
3 changes: 3 additions & 0 deletions stack-lts-16.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
resolver: lts-16.31
packages:
- '.'
3 changes: 3 additions & 0 deletions stack-lts-17.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
resolver: lts-17.8
packages:
- '.'
5 changes: 0 additions & 5 deletions stack-lts-9.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion xlsx.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Maintainer: [email protected]

Category: Codec
Build-type: Simple
Tested-with: GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.3, GHC == 8.6.5, GHC == 8.8.1
Tested-with: GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.4
Cabal-version: >=1.10

Flag microlens
Expand Down

0 comments on commit 73d75c2

Please sign in to comment.