Update CI #61
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Haskell CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
ghc: ['8.8.4', '8.10.7', '9.2.8', '9.4.8'] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: haskell-actions/setup@v2 | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
cabal-version: '3.2' | |
- uses: harmon758/postgresql-action@v1 | |
with: | |
postgresql version: '13' | |
postgresql db: 'test' | |
postgresql user: 'postgres' | |
postgresql password: 'password' | |
- name: Cache | |
uses: actions/cache@v4 | |
env: | |
cache-name: cache-cabal | |
with: | |
path: ~/.cabal | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Install dependencies | |
run: | | |
cabal v2-update | |
cabal v2-build --only-dependencies --enable-tests --enable-benchmarks | |
- name: Run checks | |
run: | | |
cp ./README.md ./selda/README.md | |
make license | |
cabal v2-run selda-changelog md | |
make check |