diff --git a/.github/workflows/bwc-tests.yml b/.github/workflows/bwc-tests.yml deleted file mode 100644 index 0a5e6786cb..0000000000 --- a/.github/workflows/bwc-tests.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Backwards Compatibility Suite - -on: [workflow_dispatch] - -jobs: - last-supported-major-to-current: - name: Make sure that the last supported major version can move to the most current version - runs-on: ubuntu-latest - - steps: - - uses: actions/setup-java@v1 - with: - java-version: 11 - - - name: Checkout Security Repo - uses: actions/checkout@v3 - - - id: build-previous - uses: ./.github/actions/run-bwc-suite - with: - plugin-previous-branch: "1.3" - plugin-next-branch: "2.x" - report-artifact-name: BWC-Last-Supported-Major - - current-to-next-unreleased-major: - name: Make sure that the current version is compatible with the next major version - runs-on: ubuntu-latest - - steps: - - uses: actions/setup-java@v1 - with: - java-version: 11 - - - name: Checkout Security Repo - uses: actions/checkout@v3 - - - id: build-previous - uses: ./.github/actions/run-bwc-suite - with: - plugin-previous-branch: "2.x" - plugin-next-branch: "main" - report-artifact-name: BWC-Next-Major diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml deleted file mode 100644 index 152a75318c..0000000000 --- a/.github/workflows/cd.yml +++ /dev/null @@ -1,73 +0,0 @@ -name: CD - -on: - push: - tags: - - '*' - -env: - GRADLE_OPTS: -Dhttp.keepAlive=false - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - - name: Set up JDK - uses: actions/setup-java@v1 - with: - java-version: 11 - - - name: Checkout security - uses: actions/checkout@v3 - - - name: Cache Gradle packages - uses: actions/cache@v3 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-gradle- - - - name: Build - run: | - ./gradlew clean build -Dbuild.snapshot=false -x test -x integrationTest - artifact_zip=`ls $(pwd)/build/distributions/opensearch-security-*.zip | grep -v admin-standalone` - ./gradlew build buildDeb buildRpm -ParchivePath=$artifact_zip -Dbuild.snapshot=false -x test -x integrationTest - mkdir artifacts - cp $artifact_zip artifacts/ - cp build/distributions/*.deb artifacts/ - cp build/distributions/*.rpm artifacts/ - zip -r artifacts.zip artifacts - echo "TAG_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV - - - name: Create Github Draft Release - id: create_release - uses: actions/create-release@v1.1.4 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ env.TAG_VERSION }} - draft: true - prerelease: false - - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1.0.2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_name: artifacts.zip - asset_path: artifacts.zip - asset_content_type: application/zip - - - name: Upload Workflow Artifacts - uses: actions/upload-artifact@v1 - with: - name: artifacts - path: artifacts/ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d5f2a0ed2c..912304f8d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: separateTestsNames: ${{ steps.set-matrix.outputs.separateTestsNames }} steps: - name: Set up JDK for build and test - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: temurin # Temurin is a distribution of adoptium java-version: 17 @@ -44,7 +44,7 @@ jobs: steps: - name: Set up JDK for build and test - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: temurin # Temurin is a distribution of adoptium java-version: ${{ matrix.jdk }} @@ -88,7 +88,7 @@ jobs: steps: - name: Set up JDK for build and test - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: temurin # Temurin is a distribution of adoptium java-version: ${{ matrix.jdk }} @@ -113,8 +113,9 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v3 with: + distribution: temurin # Temurin is a distribution of adoptium java-version: ${{ matrix.jdk }} - name: Checkout Security Repo @@ -131,8 +132,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v3 with: + distribution: temurin # Temurin is a distribution of adoptium java-version: 11 - uses: github/codeql-action/init@v2 with: @@ -145,8 +147,9 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v3 with: + distribution: temurin # Temurin is a distribution of adoptium java-version: 11 - run: | diff --git a/.github/workflows/code-hygiene.yml b/.github/workflows/code-hygiene.yml index f23b77fcbd..7d3a7de628 100644 --- a/.github/workflows/code-hygiene.yml +++ b/.github/workflows/code-hygiene.yml @@ -19,7 +19,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-java@v2 + - uses: actions/setup-java@v3 with: distribution: temurin # Temurin is a distribution of adoptium java-version: 11 @@ -35,7 +35,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-java@v2 + - uses: actions/setup-java@v3 with: distribution: temurin # Temurin is a distribution of adoptium java-version: 11 @@ -51,7 +51,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-java@v2 + - uses: actions/setup-java@v3 with: distribution: temurin # Temurin is a distribution of adoptium java-version: 11 diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 93e86be650..201cbe3491 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -15,7 +15,7 @@ jobs: test-run: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] steps: - - uses: actions/setup-java@v2 + - uses: actions/setup-java@v3 with: distribution: temurin # Temurin is a distribution of adoptium java-version: ${{ matrix.jdk }} diff --git a/.github/workflows/plugin_install.yml b/.github/workflows/plugin_install.yml index f6e6db70a1..dc598d79a0 100644 --- a/.github/workflows/plugin_install.yml +++ b/.github/workflows/plugin_install.yml @@ -17,8 +17,9 @@ jobs: steps: - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: temurin # Temurin is a distribution of adoptium java-version: ${{ matrix.jdk }} - name: Checkout Branch