|
6 | 6 | branches: [ master ] |
7 | 7 |
|
8 | 8 | jobs: |
9 | | - build-maven: |
10 | | - runs-on: ${{ matrix.os }} |
11 | | - strategy: |
12 | | - matrix: |
13 | | - java: [ '8', '11', '17', '21', '24' ] |
14 | | - os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] |
15 | | - fail-fast: false |
16 | | - steps: |
17 | | - - uses: actions/checkout@v4 |
18 | | - with: |
19 | | - fetch-depth: 0 |
20 | | - submodules: recursive |
21 | | - - name: Java ${{ matrix.Java }} (${{ matrix.os }}) |
22 | | - uses: actions/setup-java@v4 |
23 | | - with: |
24 | | - java-version: ${{ matrix.java }} |
25 | | - distribution: 'zulu' |
26 | | - - name: Cache Maven packages |
27 | | - uses: actions/cache@v4 |
28 | | - with: |
29 | | - path: ~/.m2/repository |
30 | | - key: ${{ runner.os }}-m2-repository-${{ hashFiles('**/pom.xml') }} |
31 | | - restore-keys: ${{ runner.os }}-m2-repository |
32 | | - - name: Set Integration Test Environment |
33 | | - if: matrix.os == 'ubuntu-latest' |
34 | | - run: | |
35 | | - echo "MAVEN_PROFILE_FLAG=-P integration-test" >> $GITHUB_OUTPUT |
36 | | - echo "MAVEN_VERIFY_STAGE=verify" >> $GITHUB_OUTPUT |
37 | | - echo "127.0.0.1 openam.local" | sudo tee -a /etc/hosts |
38 | | - id: maven-profile-flag |
39 | | - - name: Build with Maven |
40 | | - env: |
41 | | - MAVEN_OPTS: -Dhttps.protocols=TLSv1.2 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dmaven.wagon.http.retryHandler.requestSentEnabled=true -Dmaven.wagon.http.retryHandler.count=10 |
42 | | - run: mvn --batch-mode --errors --update-snapshots package ${{ steps.maven-profile-flag.outputs.MAVEN_VERIFY_STAGE }} --file pom.xml ${{ steps.maven-profile-flag.outputs.MAVEN_PROFILE_FLAG }} |
43 | | - - name: Upload artifacts |
44 | | - uses: actions/upload-artifact@v4 |
45 | | - with: |
46 | | - name: ${{ matrix.os }}-${{ matrix.java }} |
47 | | - retention-days: 5 |
48 | | - path: | |
49 | | - openam-distribution/openam-distribution-kit/target/*.zip |
50 | | - openam-distribution/openam-distribution-ssoconfiguratortools/target/*.zip |
51 | | - openam-distribution/openam-distribution-fedlet-unconfigured/target/*.zip |
52 | | - openam-distribution/openam-distribution-ssoadmintools/target/*.zip |
53 | | - openam-console/target/*.war |
54 | | - openam-server/target/*.war |
55 | | - openam-server-only/target/*.war |
56 | | - openam-distribution/openam-distribution-docker/Dockerfile* |
57 | 9 | build-docker: |
58 | 10 | runs-on: 'ubuntu-latest' |
59 | 11 | services: |
|
103 | 55 | run: | |
104 | 56 | docker network create test-openam |
105 | 57 | docker run --rm -it -d --hostname opendj -p 1389:1389 -p 4444:4444 --name test-opendj --network test-openam openidentityplatform/opendj:latest |
106 | | - docker run --rm -it -d --memory="2g" -h openam.example.org --name=test-openam localhost:5000/${GITHUB_REPOSITORY,,}:${{ env.release_version }} |
| 58 | + docker run --rm -it -d --memory="2g" -h openam.example.org --name=test-openam openidentityplatform/openam:15.1.5 |
107 | 59 | |
108 | 60 | echo "waiting for OpenDJ to be alive..." |
109 | 61 | timeout 3m bash -c 'until docker inspect --format="{{json .State.Health.Status}}" test-opendj | grep -q \"healthy\"; do sleep 10; done' |
|
0 commit comments