Skip to content

Commit

Permalink
Github Actions: execute tests with -N flag
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Aug 4, 2023
1 parent 108fe32 commit 094e933
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,26 +102,26 @@ jobs:
# Test network packages

- name: ntp-client [test]
run: cabal run ntp-client:test
run: cabal run ntp-client:test -- +RTS -N -RTS

- name: network-mux [test]
run: cabal run network-mux:test
run: cabal run network-mux:test -- +RTS -N -RTS

- name: ourobors-network-testing [test]
run: cabal run ouroboros-network-testing:test
run: cabal run ouroboros-network-testing:test -- +RTS -N -RTS

- name: ourobors-network-framework [test]
run: cabal run ouroboros-network-framework:test
run: cabal run ouroboros-network-framework:test -- +RTS -N -RTS

- name: ouroboros-network-protocols [test]
run: cabal run ouroboros-network-protocols:test
run: cabal run ouroboros-network-protocols:test -- +RTS -N -RTS

# We don't run cddl in GitHub actions (only on Hydra).
# - name: ouroboros-network-protocols [cddl]
# run: cabal run ouroboros-network-protocols-test:cddl

- name: ouroboros-network [test]
run: cabal run ouroboros-network:test
run: cabal run ouroboros-network:test -- +RTS -N -RTS

# Uncomment the following back in for debugging. Remember to launch a `pwsh` from
# the tmux session to debug `pwsh` issues. And be reminded that the `/msys2` and
Expand Down
1 change: 1 addition & 0 deletions ntp-client/ntp-client.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ test-suite test
default-language: Haskell2010
ghc-options: -Wall
-Wunused-packages
-threaded

executable demo-ntp-client
hs-source-dirs: demo
Expand Down
6 changes: 4 additions & 2 deletions ouroboros-network-protocols/ouroboros-network-protocols.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ test-suite test
ouroboros-network-protocols:testlib,
ouroboros-network-testing ^>= 0.3

ghc-options: -Wall
ghc-options: -threaded
-Wall
-Wunused-packages

test-suite cddl
Expand Down Expand Up @@ -243,7 +244,8 @@ test-suite cddl
ouroboros-network-protocols,
ouroboros-network-protocols:testlib

ghc-options: -Wall
ghc-options: -threaded
-Wall
-Wno-unticked-promoted-constructors
-Wcompat
-Wunused-packages

0 comments on commit 094e933

Please sign in to comment.