From 7885400e52e3a8156d517397cda5c2c1c040db18 Mon Sep 17 00:00:00 2001 From: Sarthak Aggarwal Date: Wed, 24 Jan 2024 16:04:53 +0530 Subject: [PATCH] testing bwc bwc test Signed-off-by: Sarthak Aggarwal --- .github/workflows/check.yml | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 1a5cb4a..c6d3e4d 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -55,3 +55,47 @@ jobs: - name: Run Gradle (assemble) run: | ./gradlew assemble + + 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 Security 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 Security Repo + uses: actions/checkout@v4 + + - id: build-previous + uses: ./.github/actions/run-bwc-suite + with: + plugin-previous-branch: "2.x" + plugin-next-branch: "current_branch" + report-artifact-name: bwc-${{ matrix.platform }}-jdk${{ matrix.jdk }} + username: admin + password: admin \ No newline at end of file