small change in README #34
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
# https://kodimensional.dev/github-actions | |
name: CI | |
# Trigger the workflow on push or pull request, but only for the main branch | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
stack: | |
name: stack / ghc ${{ matrix.ghc }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
stack: ["latest"] | |
ghc: ["9.4.7"] | |
steps: | |
# setup and loading cache | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Setup Haskell | |
uses: haskell/actions/setup@v2 | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
enable-stack: true | |
stack-version: ${{ matrix.stack }} | |
- name: Cache ~/.stack | |
uses: freckle/stack-cache-action@v2 | |
- name: Build | |
run: | | |
stack build \ | |
--system-ghc \ | |
--test \ | |
--coverage \ | |
--bench \ | |
--no-run-benchmarks \ | |
--pedantic | |
- name: Generate coverage report | |
uses: 8c6794b6/hpc-codecov-action@v3 | |
with: | |
target: stack:spec | |
- name: Send coverage report | |
uses: codecov/codecov-action@v4 |