Skip to content

Bump org.apache.maven.plugins:maven-surefire-plugin from 3.5.0 to 3.5… #818

Bump org.apache.maven.plugins:maven-surefire-plugin from 3.5.0 to 3.5…

Bump org.apache.maven.plugins:maven-surefire-plugin from 3.5.0 to 3.5… #818

Workflow file for this run

name: CI
on:
push:
branches:
- master
- 4.x
pull_request:
branches:
- master
- 4.x
schedule:
- cron: '0 4 * * *'
jobs:
Test:
name: Run tests
strategy:
matrix:
os: [ ubuntu-latest ]
jdk: [ 11, 17, 21 ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.jdk }}
distribution: 'temurin'
cache: 'maven'
- name: Run tests
run: mvn clean verify -B -ntp
Deploy:
name: Deploy to OSSRH
if: ${{ github.repository_owner == 'vert-x3' && (github.event_name == 'push' || github.event_name == 'schedule') }}
needs: Test
runs-on: ubuntu-latest
env:
VERTX_NEXUS_USERNAME: ${{ secrets.VERTX_NEXUS_USERNAME }}
VERTX_NEXUS_PASSWORD: ${{ secrets.VERTX_NEXUS_PASSWORD }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install JDK
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
cache: 'maven'
- name: Get project version
run: echo "PROJECT_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:evaluate -Dexpression=project.version -B | grep -v '\[')" >> $GITHUB_ENV
- name: Maven deploy
if: ${{ endsWith(env.PROJECT_VERSION, '-SNAPSHOT') }}
run: mvn deploy -s .github/maven-cd-settings.xml -DskipTests -B