Skip to content

Commit

Permalink
Add WIP refactored compatibility test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
olahungerford committed Jul 22, 2024
1 parent b41d607 commit 4702b0e
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 173 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/avro-compatibility.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/gradle-compatibility.yml

This file was deleted.

102 changes: 0 additions & 102 deletions .github/workflows/java-compatibility.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/os-compatibility.yml

This file was deleted.

79 changes: 79 additions & 0 deletions .github/workflows/test-lang-java-gradle-plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: 'Gradle Plugin Compatibility Tests'
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
paths:
- .github/workflows/test-gradle-plugin-compatibility.yml
- lang/java/gradle-plugin/**

defaults:
run:
working-directory: lang/java/gradle-plugin

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
os-compatibility:
name: 'OS Compatibility: ${{ matrix.os }}'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
distribution: temurin
java-version: 11
- uses: gradle/gradle-build-action@v2
with:
build-root-directory: lang/java/gradle-plugin
gradle-executable: lang/java/gradle-plugin/gradlew
arguments: test

version-compatibility:
name: 'Version Compatibility: Java ${{ matrix.java }}, Gradle ${{ matrix.gradle }}, Avro ${{ matrix.avro }}'
runs-on: ubuntu-latest
strategy:
matrix:
java: [11, 17, 21]
gradle: [5.6.4, 6.9.3, 7.6]
avro: [1.11.3]
exclude:
- java: 17
gradle: 5.6.4
- java: 19
gradle: 5.6.4
- java: 19
gradle: 6.9.3
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
distribution: temurin
java-version: ${{ matrix.java }}
- uses: gradle/gradle-build-action@v2
with:
build-root-directory: lang/java/gradle-plugin
gradle-executable: lang/java/gradle-plugin/gradlew
arguments: testCompatibility -PavroVersion=${{ matrix.avro }} -PgradleVersion=${{ matrix.gradle }}

0 comments on commit 4702b0e

Please sign in to comment.