Skip to content

Commit

Permalink
fix(ci): cabal is not built with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blackheaven committed Sep 8, 2023
1 parent 558d19b commit 7fcd3d0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,19 @@ jobs:
do
sleep 1
done
- id: code-hash
name: Compute code directory hash
run: |
code_hash=$(git rev-parse HEAD:code | head -c 8)-$(git rev-parse HEAD:tests | head -c 8)-$(git rev-parse HEAD:bloodhound.cabal | head -c 8)
echo "code-hash=$code_hash" >> "$GITHUB_OUTPUT"
- name: Setup cache
id: cache-build
uses: actions/cache@v3
with:
path: ~/.cabal/store
key: compat-build-${{ steps.code-hash.outputs.code-hash}}
- name: Build with tests
run: nix develop --command bash -c 'cabal v2-build --enable-tests'
- name: Run tests
run: nix develop --command bash -c 'cabal test'
- name: Stop docker
Expand Down

0 comments on commit 7fcd3d0

Please sign in to comment.