Bump org.apache.activemq:activemq-broker from 5.17.4 to 5.18.2 #3276
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
# | |
# 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 | |
# | |
# http://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: build | |
on: | |
push: | |
branches: | |
- 2.x | |
pull_request: | |
env: | |
# Maven JVM arguments | |
MAVEN_OPTS: -XX:InitialRAMPercentage=50.0 | |
# Common Maven arguments since Maven 3.9.0 | |
MAVEN_ARGS: --show-version --batch-mode --errors --no-transfer-progress | |
permissions: read-all | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
# Based on: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # 3.5.3 | |
with: | |
fetch-depth: 32 | |
# JDK 11 is used for the build. | |
# JDK 8 is used for the tests. | |
# Search `maven-toolchains-plugin` usages for details. | |
- name: Setup JDK | |
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # 3.12.0 | |
with: | |
distribution: temurin | |
# The last provided Java version will be used and available globally. | |
# Other Java versions can be accessed through environment variables: `JAVA_HOME_<majorVersion>_<architecture>` | |
java-version: | | |
8 | |
11 | |
architecture: x64 | |
cache: maven | |
# We could have used `verify`, but `clean install` is required for the following: | |
# 1. The build reproducibility report | |
# For details, see: https://maven.apache.org/guides/mini/guide-reproducible-builds.html#how-to-test-my-maven-build-reproducibility | |
# 2. `javadoc:javadoc-no-fork`, which is attached to the `site` goal | |
- name: Build | |
timeout-minutes: 60 | |
shell: bash | |
run: | | |
./mvnw \ | |
-Pjava8-tests \ | |
clean install | |
- name: Upload Surefire Reports | |
if: failure() | |
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # 3.1.2 | |
with: | |
name: surefire-reports-${{matrix.os}} | |
path: "**/target/surefire-reports/*" | |
# `clean verify artifact:compare` is required to generate the build reproducibility report. | |
# For details, see: https://maven.apache.org/guides/mini/guide-reproducible-builds.html#how-to-test-my-maven-build-reproducibility | |
- name: Report build reproducibility | |
id: report-reproducible | |
timeout-minutes: 10 | |
shell: bash | |
run: | | |
./mvnw \ | |
-DskipTests=true \ | |
clean package artifact:compare | |
- name: Upload reproducibility failure context artifacts | |
if: failure() | |
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # 3.1.2 | |
with: | |
name: reproducibility-failure-context-${{matrix.os}} | |
path: | | |
**/target/*.buildcompare | |
**/target/*.jar | |
**/target/reference/*.jar | |
- name: Build site | |
timeout-minutes: 10 | |
shell: bash | |
run: ./mvnw site | |
merge: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' | |
needs: build | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: "[dependabot] Auto-merge the PR" | |
run: gh pr merge --auto --squash "$PR_URL" | |
env: | |
PR_URL: ${{ github.event.pull_request.html_url }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
if: github.repository == 'apache/logging-log4j2' && github.ref == 'refs/heads/2.x' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # 3.5.3 | |
with: | |
fetch-depth: 32 | |
# JDK 11 is used for the build. | |
# JDK 8 is used for the tests. | |
# Search `maven-toolchains-plugin` usages for details. | |
- name: Setup JDK | |
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # 3.12.0 | |
with: | |
distribution: temurin | |
# The last provided Java version will be used and available globally. | |
# Other Java versions can be accessed through environment variables: `JAVA_HOME_<majorVersion>_<architecture>` | |
java-version: | | |
8 | |
11 | |
architecture: x64 | |
cache: maven | |
- name: Inspect project version | |
env: | |
# Overrides defaults | |
MAVEN_ARGS: -q -N | |
run: | | |
VERSION=$(./mvnw help:evaluate -DforceStdout=true -Dexpression=project.version) | |
echo $VERSION | |
echo "project_version=$VERSION" >> $GITHUB_ENV | |
- name: Deploy artifacts | |
# Do not deploy release versions | |
if: ${{ endsWith(env.project_version, '-SNAPSHOT') }} | |
timeout-minutes: 15 | |
shell: bash | |
# `package install:install deploy:deploy` goal is needed to deploy without configuring the plugin in the POM. | |
# For details, see: https://maven.apache.org/plugins/maven-gpg-plugin/examples/deploy-signed-artifacts.html | |
run: | | |
./mvnw \ | |
--settings .github/workflows/maven-settings.xml \ | |
-Dgpg.skip=true \ | |
-DskipTests=true \ | |
package install:install deploy:deploy | |
env: | |
NEXUS_USER: ${{ secrets.NEXUS_USER }} | |
NEXUS_PW: ${{ secrets.NEXUS_PW }} |