on master help sign in
Add Github CI
commita394358237451875703fccd77bee03a8a69eb8db authorNeil Mitchell <ndmitchell@gmail.com> dateMon 23 Nov 2020, 19:35 (6 years ago) parent232e811
1 file changed+32
.github/workflows/ci.yml+32
.github/workflows/ci.ymlnew file+32
@@ -0,0 +1,32 @@
1+on:
2+ push:
3+ pull_request:
4+ schedule:
5+ - cron: '0 3 * * 6' # 3am Saturday
6+jobs:
7+ test:
8+ runs-on: ${{ matrix.os }}
9+
10+ strategy:
11+ fail-fast: false
12+ matrix:
13+ os: [ubuntu-latest]
14+ ghc: ['8.10', '8.8', '8.6', '8.4', '8.2', '8.0']
15+ include:
16+ - os: windows-latest
17+ - os: macOS-latest
18+
19+ steps:
20+ - run: git config --global core.autocrlf false
21+ - uses: actions/checkout@v2
22+ - uses: actions/setup-haskell@v1
23+ id: setup-haskell
24+ with:
25+ ghc-version: ${{ matrix.ghc }}
26+ - run: cabal v2-freeze --enable-tests
27+ - uses: actions/cache@v2
28+ with:
29+ path: ${{ steps.setup-haskell.outputs.cabal-store }}
30+ key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
31+ restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
32+ - uses: ndmitchell/neil@master