update java version in yaml file #99
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: Test Package | |
on: | |
push: | |
branches: [ develop ] | |
pull_request: | |
branches: [ develop ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
server-id: forgerock-private-releases | |
server-username: FORGEROCK_MVN_USER | |
server-password: FORGEROCK_MVN_PASS | |
- name: Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Build with Maven | |
run: mvn --batch-mode --update-snapshots --fail-at-end verify | |
env: | |
# These are taken from the settings.xml ForgeRock generates for you. | |
# See the README for info on generating that file -- then grab the user/pass | |
# and update it in settings -> secrets -> repository secrets. | |
FORGEROCK_MVN_USER: ${{ secrets.FORGEROCK_MVN_USER }} | |
FORGEROCK_MVN_PASS: ${{ secrets.FORGEROCK_MVN_PASS }} |