Merge pull request #751 from adoptium/dependabot/github_actions/dot-g… #908
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
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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Build app | |
run: ./mvnw --batch-mode clean install ${{ env.ARGS }} |