Skip to content

Commit

Permalink
Merge pull request #75 from himura/github-actions
Browse files Browse the repository at this point in the history
Set up GitHub Actions
  • Loading branch information
himura authored Apr 28, 2020
2 parents ef6dc2c + 226f4dd commit beb3034
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Haskell CI

on:
push:
branches:
- master
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ghc: [ '8.4.4', '8.6.5', '8.8.3' ]
cabal: [ '3.0' ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-haskell@v1
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

- name: Cache ~/.cabal/packages
uses: actions/cache@v1
with:
path: ~/.cabal/packages
key: ${{ runner.os }}-cabal-packages-cabal${{ matrix.cabal }}-ghc${{ matrix.ghc }}
restore-keys: |
${{ runner.os }}-cabal-packages-cabal${{ matrix.cabal }}-
- name: Cache ~/.cabal/store
uses: actions/cache@v1
with:
path: ~/.cabal/store
key: ${{ runner.os }}-cabal-store-cabal${{ matrix.cabal }}-ghc${{ matrix.ghc }}

- name: Install dependencies
run: |
cabal v2-update
cabal v2-build all --only-dependencies
- name: Build
run: cabal v2-build all
- name: Run tests
run: cabal v2-test all
2 changes: 2 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages: ./
sample/
2 changes: 1 addition & 1 deletion twitter-conduit.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cabal-version: >= 1.10
build-type: Custom
homepage: https://github.com/himura/twitter-conduit

tested-with: GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5
tested-with: GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.3

description:
This package provides bindings to Twitter's APIs (see <https://dev.twitter.com/>).
Expand Down

0 comments on commit beb3034

Please sign in to comment.