diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 355acc35..792cd80c 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -8,17 +8,11 @@ on: - '[3-9]+.[0-9]+.x' workflow_dispatch: jobs: - container-job: + build: runs-on: ubuntu-latest - container: node:10.22-jessie - services: - redis: - image: redis - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 + strategy: + matrix: + redis-version: [6, 7] steps: - uses: actions/checkout@v3 - name: Set up JDK @@ -26,6 +20,10 @@ jobs: with: distribution: 'adopt' java-version: 11 + - name: Setup Redis + uses: supercharge/redis-github-action@1.7.0 + with: + redis-version: ${{ matrix.redis-version }} - name: Run Build id: build uses: gradle/gradle-build-action@v2