Skip to content

Merge pull request #1215 from adoptium/dependabot/github_actions/gith… #1785

Merge pull request #1215 from adoptium/dependabot/github_actions/gith…

Merge pull request #1215 from adoptium/dependabot/github_actions/gith… #1785

Workflow file for this run

name: CI
on:
pull_request:
branches: [ main, production ]
push:
branches: [ main, production ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ecosystem: [adoptium, adoptopenjdk]
steps:
- name: Setup mvnw arguments
run: |
case ${{ matrix.ecosystem }} in
adoptium) echo "ARGS=-Padoptium,-adoptopenjdk" >> $GITHUB_ENV ;;
adoptopenjdk) echo "ARGS=-Padoptopenjdk,-adoptium" >> $GITHUB_ENV ;;
esac
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
persist-credentials: false
- uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0
with:
java-version: '21'
distribution: 'temurin'
cache: 'maven'
- name: Build app
run: ./mvnw --batch-mode clean install ${{ env.ARGS }}