Skip to content

G2-1559 Add module & profile support for MavenPOM #172

G2-1559 Add module & profile support for MavenPOM

G2-1559 Add module & profile support for MavenPOM #172

Workflow file for this run

name: Java CI with Maven
on:
pull_request:
branches:
- master
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 17
cache: 'maven'
- name: Reassert Integration Test Cache
uses: actions/cache@v3
with:
path: "~/.reassert"
key: ${{ runner.os }}-reassert-integration-${{ hashFiles('**/Integration*.java', '**/pom.xml') }}
restore-keys: |
${{ runner.os }}-reassert-integration-
- name: Build with Maven
# Maven deploy on changes (or manual run) to master, otherwise just package it
run: mvn -s "${GITHUB_WORKSPACE}/.github/workflows/maven-settings.xml" -B verify ${{ (((github.event_name == 'push') || (github.event_name == 'workflow_dispatch')) && (github.ref == 'refs/heads/master')) && 'deploy' || 'package' }} --file pom.xml -Prelease,release-snapshot
env:
GITHUB_TOKEN: ${{ github.token }}