Skip to content

Commit

Permalink
add path filters for unit tests, omit integration tests on macos-12 r…
Browse files Browse the repository at this point in the history
…unner
  • Loading branch information
jberthold committed Apr 17, 2024
1 parent 47bb41c commit a5fac10
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,18 +156,20 @@ jobs:
cabal-nix-${{ runner.os }}-ghc-${{ env.ghc_version }}
- name: Test
if: ${{ steps.changes.outputs.booster == 'true' || steps.changes.outputs.kore == 'true' || steps.changes.outputs.project == 'true' }}
run: GC_DONT_GC=1 nix develop .#cabal --command bash -c "hpack ./booster && hpack dev-tools && cabal update && cabal build all && cabal test --enable-tests --test-show-details=direct kore-test unit-tests"

- name: Run booster integration tests
if: ${{ (steps.changes.outputs.booster == 'true' || steps.changes.outputs.kore_rpc_types == 'true' || steps.changes.outputs.project == 'true') }}
# do not run this unless anything has changed in a relevant directory
if: ${{ matrix.runner != "macos-12" && (steps.changes.outputs.booster == 'true' || steps.changes.outputs.kore_rpc_types == 'true' || steps.changes.outputs.project == 'true') }}
env:
CONNECTION_ATTEMPTS: 30
run: |
GC_DONT_GC=1 nix develop .#cabal --command bash -c "scripts/booster-integration-tests.sh"
- name: Run kore integration tests
# do not run this unless anything has changed in a relevant directory
if: ${{ (steps.changes.outputs.kore == 'true' || steps.changes.outputs.kore_rpc_types == 'true' || steps.changes.outputs.kore_tests == 'true' || steps.changes.outputs.project == 'true') }}
if: ${{ matrix.runner != "macos-12" && (steps.changes.outputs.kore == 'true' || steps.changes.outputs.kore_rpc_types == 'true' || steps.changes.outputs.kore_tests == 'true' || steps.changes.outputs.project == 'true') }}
run: |
GC_DONT_GC=1 nix develop github:runtimeverification/k/v$(cat deps/k_release)#kore-integration-tests \
--override-input haskell-backend . --update-input haskell-backend \
Expand Down

0 comments on commit a5fac10

Please sign in to comment.