Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/cabal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Cabal

on: ['pull_request', 'push']

jobs:
build:
name: Build on ${{ matrix.os }} GHC ${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
ghc: ["9.0.2", "9.2.7", "9.4.4"]
fail-fast: false

steps:
- uses: actions/checkout@v2

- uses: haskell/actions/setup@v2
name: Setup Haskell Cabal
with:
ghc-version: ${{ matrix.ghc }}

- uses: actions/cache@v2
name: Cache ~/.cabal
with:
path: ~/.cabal
key: "${{ runner.os }}-${{ matrix.ghc }}-v9-${{ hashFiles('stylish-haskell.cabal') }}"

- name: Build
run: cabal build --enable-tests
id: build

- name: Test
run: cabal test

3 changes: 2 additions & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

<img src="./assets/Logo/SVG/RoundedLogo.svg" width="100px">

![Build Status](https://github.com/jaspervdj/stylish-haskell/workflows/CI/badge.svg)
![Stack Build Status](https://github.com/jaspervdj/stylish-haskell/workflows/CI/badge.svg)
![Cabal Build Status](https://github.com/jaspervdj/stylish-haskell/workflows/Cabal/badge.svg)

## Introduction

Expand Down