From ada6e1cabe1afc6daf35797d01ab3f56afeb3dc9 Mon Sep 17 00:00:00 2001 From: Jan Henning Thorsen Date: Mon, 17 Oct 2022 18:27:39 +0200 Subject: [PATCH] Add Redis setup to .github/workflows/ci.yml --- .github/workflows/ci.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index df9fe47..4b13b5b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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}}"