Skip to content

Commit

Permalink
ci: Improve output of test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
ixti committed Dec 18, 2023
1 parent e8eccd4 commit cafb542
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ on:

jobs:
test:
name: "rspec (ruby:${{ matrix.ruby }})"
name: "test / ${{ matrix.ruby }} / ${{ matrix.redis }}"

runs-on: ubuntu-latest

services:
redis:
image: redis
image: ${{ matrix.redis }}
ports:
- "6379:6379"
options: >-
Expand All @@ -27,6 +27,7 @@ jobs:
fail-fast: false
matrix:
ruby: [ ruby-2.7, ruby-3.0, ruby-3.1, ruby-3.2 ]
redis: [ "redis:6.2", "redis:7.0", "redis:7.2" ]

steps:
- uses: actions/checkout@v4
Expand All @@ -43,6 +44,18 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

# See: https://github.com/orgs/community/discussions/26822#discussioncomment-3305794
test-finale:
name: "test"

runs-on: ubuntu-latest
if: ${{ always() }}

needs: [test]

steps:
- run: test "success" = "${{ needs.test.result }}"

lint:
runs-on: ubuntu-latest

Expand Down

0 comments on commit cafb542

Please sign in to comment.