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
18 changes: 16 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
version: 2.1

orbs:
coveralls: coveralls/coveralls@2.2.5

workflows:
tests:
jobs:
- build:
context: coveralls-context

jobs:
build:
docker:
Expand Down Expand Up @@ -31,20 +40,25 @@ jobs:

corepack enable
corepack prepare yarn@stable --activate

- run:
name: Resolve/Update Dependencies
command: |
stack --no-terminal setup
rm -fr $(stack path --dist-dir) $(stack path --local-install-root)
stack --no-terminal build --fast -j1 --ghc-options -Werror
stack build hlint
stack build hpc-lcov
yarn install

- run:
name: Run tests
name: Run Tests and Generate Coverage
command: |
stack --no-terminal test
yarn test --maxWorkers=4
stack --no-terminal test --coverage
$(stack exec which hpc-lcov)

- coveralls/upload

- save_cache:
name: Cache Dependencies (Haskell)
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
- Use `magick` command instead of `convert` when serving graph images
- Restructured code base for coverage reports
- Reorganized `.cabal` file
- Added coverage report to test suite

## [0.6.0] - 2024-06-24

Expand Down