Skip to content

Commit

Permalink
Add .github/workflows/build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sol committed Jan 21, 2021
1 parent d4a0cf5 commit c1ba41c
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 30 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: build

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
name: ${{ matrix.os }} / GHC ${{ matrix.ghc }}
runs-on: ${{ matrix.os }}

strategy:
matrix:
os:
- ubuntu-16.04 # https://launchpad.net/~hvr/+archive/ubuntu/ghc?field.series_filter=xenial
ghc:
- '7.4.2'
- '7.6.3'
- '7.8.4'
- '7.10'
- '8.0'
- '8.2'
- '8.4'
- '8.6'
- '8.8'
- '8.10'
include:
- os: macos-latest
ghc: latest
- os: windows-latest
ghc: latest
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
with:
ghc-version: ${{ matrix.ghc }}
- uses: sol/run-haskell-tests@v1

success:
needs: build
runs-on: ubuntu-latest
if: always() # this is required as GitHub considers "skipped" jobs as "passed" when checking branch protection rules

steps:
- run: false
if: needs.build.result != 'success'
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

5 changes: 5 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
packages:
hspec-expectations.cabal

package hspec-expectations
ghc-options: -Werror

0 comments on commit c1ba41c

Please sign in to comment.