witch/.github/workflows/ci.yaml

38 lines
1.1 KiB
YAML
Raw Normal View History

2020-11-14 19:54:45 +03:00
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
strategy:
2020-11-14 19:55:42 +03:00
matrix:
os: [ ubuntu-18.04 ]
2020-11-14 19:58:25 +03:00
ghc: [ '8.10.2' ]
cabal: [ '3.4.0.0' ]
2020-11-14 19:54:45 +03:00
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- id: setup-haskell
uses: actions/setup-haskell@v1
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- run: cabal freeze && cat cabal.project.freeze
- uses: actions/cache@v2
with:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key: ${{ matrix.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: |
${{ matrix.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}-
${{ matrix.os }}-${{ matrix.ghc }}-
- run: cabal test --test-show-details direct
- run: cabal sdist
- uses: actions/upload-artifact@v2
with:
path: dist-newstyle/sdist/witch-*.tar.gz
name: witch-${{ github.sha }}.tar.gz
- run: cabal check