Skip to content

Commit

Permalink
More work on CI, minio-hs compat
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Jul 20, 2024
1 parent 27d057c commit 5f973b9
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 164 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/sandwich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
ghc:
- "8.6.5"
- "8.8.4"
# - "8.6.5"
# - "8.8.4"
- "8.10.7"
- "9.0.2"
- "9.2.8"
Expand All @@ -34,6 +34,11 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: cachix/install-nix-action@v27
with:
# release-24.05
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/74435c9234c751e6786c5f3fd34ff6b0f0c13bd1.tar.gz

- uses: haskell/actions/setup@v2
id: setup-haskell-cabal
name: Setup Haskell
Expand All @@ -51,6 +56,12 @@ jobs:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}

- name: Install pcre
if: runner.os == "macOS"
run: |
brew update
brew install pcre
- name: Build
run: |
cabal configure --enable-tests --enable-benchmarks --test-show-details=direct
Expand All @@ -72,7 +83,7 @@ jobs:
- ghc: "9.4.8"
yaml: "stack-9.4.8.yaml"
- ghc: "9.6.5"
yaml: "stack-9.6.5.yaml"
yaml: "stack.yaml"
- ghc: "9.8.1"
yaml: "stack-9.8.1.yaml"

Expand Down
2 changes: 1 addition & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ source-repository-package
source-repository-package
type: git
location: https://github.com/codedownio/minio-hs.git
tag: 768665c90321d118fdd3cde2c6ac6c01310d76a0
tag: 1e63a0ec44fff374799b25a0a02c041eab664c4f

source-repository-package
type: git
Expand Down
2 changes: 1 addition & 1 deletion demos/demo-webdriver-pool/app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ introduceWebDriverPool :: forall m context. (
) => Int -> WdOptions -> SpecFree (LabelValue "webDriverPool" (Pool WebDriver) :> context) m () -> SpecFree context m ()
introduceWebDriverPool poolSize wdOptions' = introduceWith "Introduce webdriver pool" webDriverPool $ \action -> do
wdOptions <- addCommandLineOptionsToWdOptions <$> getSomeCommandLineOptions <*> pure wdOptions'
bracket (newPool =<< mkSafeDefaultPoolConfig (allocateWebDriver wdOptions) cleanupWebDriver 30.0 poolSize) destroyAllResources $ \pool ->
bracket (newPool =<< mkSafeDefaultPoolConfig (allocateWebDriver wdOptions defaultOnDemandOptions) cleanupWebDriver 30.0 poolSize) destroyAllResources $ \pool ->
void $ action pool

where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ data OnDemandOptions = OnDemandOptions {
-- | How to obtain Xvfb binary.
, xvfbToUse :: XvfbToUse
}
defaultOnDemandOptions = OnDemandOptions {
ffmpegToUse = UseFfmpegFromPath
, xvfbToUse = UseXvfbFromPath
}

data HeadlessConfig = HeadlessConfig {
headlessResolution :: Maybe (Int, Int)
Expand Down
4 changes: 4 additions & 0 deletions sandwich-webdriver/src/Test/Sandwich/WebDriver/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ module Test.Sandwich.WebDriver.Types (
, WebDriverMonad
, WebDriverSessionMonad

-- * On demand options
, OnDemandOptions
, defaultOnDemandOptions

-- * The Xvfb session
, XvfbSession(..)
, getXvfbSession
Expand Down
2 changes: 1 addition & 1 deletion stack-9.4.8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ extra-deps:
## For sandwich-contexts

- git: https://github.com/codedownio/minio-hs
commit: 768665c90321d118fdd3cde2c6ac6c01310d76a0
commit: 1e63a0ec44fff374799b25a0a02c041eab664c4f

## For sandwich-contexts-docker

Expand Down
6 changes: 3 additions & 3 deletions stack-9.4.8.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ packages:
original:
hackage: tls-2.0.1@sha256:6f93816f1b67efafe63a91296e047d6218ccdfd355cd17cd47c798871c871444,6046
- completed:
commit: 768665c90321d118fdd3cde2c6ac6c01310d76a0
commit: 1e63a0ec44fff374799b25a0a02c041eab664c4f
git: https://github.com/codedownio/minio-hs
name: minio-hs
pantry-tree:
sha256: 63fecbf5146f8704eba62c12ba86494f7bc477d8d882e74846ea0d1dfce03a1a
sha256: 6487e6cdf336fda12f9f4e88fb8edc17b3fd32e3f837b5a143237c3d80498929
size: 4744
version: 1.7.0
original:
commit: 768665c90321d118fdd3cde2c6ac6c01310d76a0
commit: 1e63a0ec44fff374799b25a0a02c041eab664c4f
git: https://github.com/codedownio/minio-hs
- completed:
commit: 8cf2e348999c6f8cf2bb2583b4f5f083fba5170c
Expand Down
59 changes: 0 additions & 59 deletions stack-9.6.5.yaml

This file was deleted.

91 changes: 0 additions & 91 deletions stack-9.6.5.yaml.lock

This file was deleted.

2 changes: 1 addition & 1 deletion stack-9.8.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ extra-deps:
## For sandwich-contexts

- git: https://github.com/codedownio/minio-hs
commit: 768665c90321d118fdd3cde2c6ac6c01310d76a0
commit: 1e63a0ec44fff374799b25a0a02c041eab664c4f

## For sandwich-contexts-docker

Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ extra-deps:
## For sandwich-contexts

- git: https://github.com/codedownio/minio-hs
commit: 768665c90321d118fdd3cde2c6ac6c01310d76a0
commit: 1e63a0ec44fff374799b25a0a02c041eab664c4f

## For sandwich-contexts-docker

Expand Down
6 changes: 3 additions & 3 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ packages:
original:
hackage: vty-windows-0.2.0.0
- completed:
commit: 768665c90321d118fdd3cde2c6ac6c01310d76a0
commit: 1e63a0ec44fff374799b25a0a02c041eab664c4f
git: https://github.com/codedownio/minio-hs
name: minio-hs
pantry-tree:
sha256: 63fecbf5146f8704eba62c12ba86494f7bc477d8d882e74846ea0d1dfce03a1a
sha256: 6487e6cdf336fda12f9f4e88fb8edc17b3fd32e3f837b5a143237c3d80498929
size: 4744
version: 1.7.0
original:
commit: 768665c90321d118fdd3cde2c6ac6c01310d76a0
commit: 1e63a0ec44fff374799b25a0a02c041eab664c4f
git: https://github.com/codedownio/minio-hs
- completed:
commit: 8cf2e348999c6f8cf2bb2583b4f5f083fba5170c
Expand Down

0 comments on commit 5f973b9

Please sign in to comment.