forked from apache/avro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WIP refactored compatibility test workflow
- Loading branch information
1 parent
b41d607
commit 4702b0e
Showing
5 changed files
with
79 additions
and
173 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |