[NOT TO MERGE] Upgrade Test #37
Workflow file for this run
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
- 2.* | |
pull_request: | |
env: | |
GRADLE_OPTS: -Dhttp.keepAlive=true | |
CI_ENVIRONMENT: normal | |
jobs: | |
generate-test-list: | |
runs-on: ubuntu-latest | |
outputs: | |
separateTestsNames: ${{ steps.set-matrix.outputs.separateTestsNames }} | |
steps: | |
- name: Set up JDK for build and test | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin # Temurin is a distribution of adoptium | |
java-version: 17 | |
- name: Checkout custom-codecs | |
uses: actions/checkout@v4 | |
- name: Generate list of tasks | |
id: set-matrix | |
run: | | |
echo "separateTestsNames=$(./gradlew listTasksAsJSON -q --console=plain | tail -n 1)" >> $GITHUB_OUTPUT | |
test: | |
name: test | |
needs: generate-test-list | |
strategy: | |
fail-fast: false | |
matrix: | |
gradle_task: ${{ fromJson(needs.generate-test-list.outputs.separateTestsNames) }} | |
platform: [windows-latest, ubuntu-latest] | |
jdk: [11, 17, 21] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Set up JDK for build and test | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin # Temurin is a distribution of adoptium | |
java-version: ${{ matrix.jdk }} | |
- name: Checkout custom-codecs | |
uses: actions/checkout@v4 | |
- name: Build and Test | |
uses: gradle/gradle-build-action@v2 | |
with: | |
cache-disabled: true | |
arguments: | | |
${{ matrix.gradle_task }} -Dbuild.snapshot=false | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: ${{ matrix.platform }}-JDK${{ matrix.jdk }}-${{ matrix.gradle_task }}-reports | |
path: | | |
./build/reports/ | |
backward-compatibility-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin # Temurin is a distribution of adoptium | |
java-version: 17 | |
- name: Checkout custom-codecs Repo | |
uses: actions/checkout@v4 | |
- name: Build BWC tests | |
uses: gradle/gradle-build-action@v2 | |
with: | |
cache-disabled: true | |
arguments: | | |
-p bwc-test build -x test -x integTest | |
backward-compatibility: | |
strategy: | |
fail-fast: false | |
matrix: | |
jdk: [11, 17] | |
platform: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin # Temurin is a distribution of adoptium | |
java-version: ${{ matrix.jdk }} | |
- name: Checkout custom-codecs Repo | |
uses: actions/checkout@v4 | |
- id: build-previous | |
uses: ./.github/actions/run-bwc-suite | |
with: | |
plugin-previous-branch: "2.11" | |
plugin-next-branch: "current_branch" | |
report-artifact-name: bwc-${{ matrix.platform }}-jdk${{ matrix.jdk }} | |
username: admin | |
password: admin | |
code-ql: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin # Temurin is a distribution of adoptium | |
java-version: 11 | |
- uses: github/codeql-action/init@v3 | |
with: | |
languages: java | |
- run: ./gradlew clean assemble | |
- uses: github/codeql-action/analyze@v3 |