From 9a900d94ff146bef0971362ad9be69649f9f2055 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Choutri?= Date: Tue, 23 Apr 2024 18:46:16 +0200 Subject: [PATCH] Fix tests --- .github/dependabot.yml | 10 ++++++++++ .github/workflows/install-system-dependencies.sh | 6 ++++++ .github/workflows/master.yml | 7 ++++--- cabal.project | 6 ++++-- 4 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 .github/dependabot.yml create mode 100755 .github/workflows/install-system-dependencies.sh diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..dfd0e3086 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +# Set update schedule for GitHub Actions + +version: 2 +updates: + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every week + interval: "weekly" diff --git a/.github/workflows/install-system-dependencies.sh b/.github/workflows/install-system-dependencies.sh new file mode 100755 index 000000000..4cfb4d03d --- /dev/null +++ b/.github/workflows/install-system-dependencies.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +case "$(uname -s)" in + Linux*) sudo apt install postgresql;; + Darwin*) brew install postgresql openssl;; +esac diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 06a494283..28bd29004 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -19,7 +19,6 @@ jobs: with: cabal-file: servant/servant.cabal ubuntu-version: "latest" - macos-version: "latest" version: 0.1.7.0 tests: name: ${{ matrix.ghc }} on ${{ matrix.os }} @@ -29,8 +28,7 @@ jobs: matrix: ${{ fromJSON(needs.generate-matrix.outputs.matrix) }} steps: - uses: actions/checkout@v2 - - - uses: haskell/actions/setup@v2 + - uses: haskell-actions/setup@v2 id: setup-haskell-cabal name: Setup Haskell with: @@ -51,6 +49,9 @@ jobs: key: ${{ runner.os }}-ghc-${{ matrix.ghc }}-cabal-${{ hashFiles('**/plan.json') }} restore-keys: ${{ runner.os }}-ghc-${{ matrix.ghc }}- + - name: Install system dependencies + run: | + ./.github/workflows/install-system-dependencies.sh - name: Install doctest run: | cabal install --ignore-project -j2 doctest --constraint='doctest ^>=0.22' diff --git a/cabal.project b/cabal.project index cf53d7160..572b80241 100644 --- a/cabal.project +++ b/cabal.project @@ -6,13 +6,15 @@ packages: servant-auth/servant-auth-server servant-auth/servant-auth-swagger - servant-client/ servant-client-core/ - servant-http-streams/ + servant-client/ servant-docs/ servant-foreign/ + servant-http-streams/ + servant-quickcheck/ servant-server/ servant-swagger/ + doc/tutorial/ -- servant streaming