Skip to content

Commit

Permalink
Add Redis setup to .github/workflows/ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jhthorsen committed Oct 26, 2022
1 parent e24c708 commit ada6e1c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,24 @@ on:
- "**"
jobs:
perl:
name: "Perl ${{matrix.perl}} on ${{matrix.os}}"
name: "Perl ${{matrix.perl}}, Redis ${{matrix.redis}}"
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"]
perl: ["5.32", "5.26", "5.16"]
os: ["ubuntu-latest"]
perl: ["5.32"]
redis: ["5", "latest"]
runs-on: "${{matrix.os}}"
steps:
- uses: actions/checkout@v2
- name: Setup redis
uses: shogo82148/actions-setup-redis@v1
with:
redis-version: ${{ matrix.redis }}
auto-start: true
- uses: shogo82148/actions-setup-perl@v1
with:
perl-version: "${{matrix.perl}}"
- run: redis-cli --version
- run: perl -V
- name: Fix ExtUtils::MakeMaker for Perl 5.16
run: cpanm -n App::cpanminus ExtUtils::MakeMaker
Expand All @@ -28,3 +35,4 @@ jobs:
run: prove -l t/*.t
env:
HARNESS_OPTIONS: j4
TEST_ONLINE: "redis://127.0.0.1:${{steps.setup.outputs.redis-port}}"

0 comments on commit ada6e1c

Please sign in to comment.