Skip to content

Commit

Permalink
Merge pull request #212 from informatikr/redis-ci
Browse files Browse the repository at this point in the history
[draft] Add GitHub actions driven Redis tests
  • Loading branch information
qnikst authored Jun 11, 2023
2 parents 05861ca + d4ea29e commit 9e92977
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,19 @@ jobs:
ghc: ['8.10.5', '9.2.1', '9.6.2']
cabal: ['3.10.1.0']
os: [ubuntu-latest]
name: GHC ${{ matrix.ghc }} / Cabal ${{ matrix.cabal }} / ${{ matrix.os }}
redis-version: [6, 7]
services:
redis:
image: "redis:${{ matrix.redis-version }}"
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps port 6379 on service container to the host
- 6379:6379
name: GHC ${{ matrix.ghc }} / Cabal ${{ matrix.cabal }} / Redis ${{ matrix.redis-version}}/ ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup Haskell
Expand All @@ -19,3 +31,6 @@ jobs:
- run: cabal build --enable-tests --enable-benchmarks
- run: cabal install doctest
- run: cabal repl --with-ghc=doctest
- run: cabal test test:hedis-test
- run: cabal test test:redis7
if: ${{ matrix.redis-version == 7}}

0 comments on commit 9e92977

Please sign in to comment.