Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI #974

Merged
merged 6 commits into from
Jan 22, 2024
Merged

CI #974

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
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Tests

on:
pull_request:
push:
branches:
- master
push:
branches: [ 'master', 'ci' ]
pull_request:
branches: [ 'master' ]

jobs:
stack:
Expand Down
2 changes: 1 addition & 1 deletion stack-lts-18.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extra-deps:
- crypton-x509-1.7.6
- crypton-x509-store-1.6.9
- crypton-x509-validation-1.6.12
- http2-5.0.0
- http2-5.1.0
- network-byte-order-0.1.7
- network-control-0.0.2
- tls-1.7.0
Expand Down
4 changes: 2 additions & 2 deletions stack-lts-19.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ extra-deps:
- crypton-x509-system-1.6.7
- crypton-x509-validation-1.6.12
- fast-logger-3.2.2
- http2-5.0.0
- http3-0.0.7
- http2-5.1.0
- http3-0.0.8
- memory-0.18.0
- network-3.1.4.0
- network-byte-order-0.1.7
Expand Down
4 changes: 2 additions & 2 deletions stack-lts-20.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ extra-deps:
- crypton-x509-system-1.6.7
- crypton-x509-validation-1.6.12
- fast-logger-3.2.2
- http2-5.0.0
- http3-0.0.7
- http2-5.1.0
- http3-0.0.8
- memory-0.18.0
- multipart-0.2.1
- network-byte-order-0.1.7
Expand Down
4 changes: 2 additions & 2 deletions stack-lts-21.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ extra-deps:
- crypton-x509-store-1.6.9
- crypton-x509-system-1.6.7
- crypton-x509-validation-1.6.12
- http2-5.0.0
- http3-0.0.7
- http2-5.1.0
- http3-0.0.8
- network-control-0.0.2
- network-udp-0.0.0
- quic-0.1.12
Expand Down
3 changes: 2 additions & 1 deletion stack-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ nix:
- zlib
extra-deps:
- crypto-token-0.1.0
- http3-0.0.7
- http2-5.1.0
- http3-0.0.8
- network-udp-0.0.0
- quic-0.1.15
- sockaddr-0.0.1
3 changes: 2 additions & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ nix:
- zlib
extra-deps:
- crypto-token-0.1.0
- http3-0.0.7
- http2-5.1.0
- http3-0.0.8
- network-udp-0.0.0
- quic-0.1.14
- sockaddr-0.0.1
Expand Down
14 changes: 14 additions & 0 deletions warp/test/PackIntSpec.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module PackIntSpec (spec) where

import qualified Data.ByteString.Char8 as C8
import Network.Wai.Handler.Warp.PackInt
import Test.Hspec
import Test.Hspec.QuickCheck
import qualified Test.QuickCheck as QC

spec :: Spec
spec = describe "readInt64" $ do
prop "" $ \n -> packIntegral (abs n :: Int) == C8.pack (show (abs n))
prop "" $ \(QC.Large n) ->
let n' = fromIntegral (abs n :: Int)
in packIntegral (n' :: Int) == C8.pack (show n')