Skip to content

Commit a3227ce

Browse files
committed
java8/11 test for sdk-platform-java
1 parent 25b57d5 commit a3227ce

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,40 @@ jobs:
4545
env:
4646
JOB_TYPE: test
4747
JOB_NAME: units-${{matrix.java}}
48+
units-8-runtime:
49+
runs-on: ubuntu-latest
50+
steps:
51+
- name: Get current week within the year
52+
id: date
53+
run: echo "::set-output name=week_of_year::$(date +'%W' --utc)"
54+
- uses: actions/checkout@v4
55+
- uses: actions/setup-java@v4
56+
with:
57+
java-version: 11
58+
distribution: temurin
59+
cache: maven
60+
- run: java -version
61+
- uses: actions/cache@v4
62+
id: mvn-cache
63+
with:
64+
path: ~/.m2/repository
65+
key: ${{ runner.os }}-maven-unified-${{ steps.date.outputs.week_of_year }}
66+
- name: Install all modules using Java 11
67+
shell: bash
68+
run: |
69+
mvn -V -B -ntp clean install -DskipTests -Dfmt.skip -Dclirr.skip -Denforcer.skip -Dcheckstyle.skip -Dflatten.skip -Danimal-sniffer.skip -Djacoco.skip
70+
working-directory: sdk-platform-java
71+
- uses: actions/setup-java@v4
72+
with:
73+
java-version: 8
74+
distribution: temurin
75+
- run: java -version
76+
- name: Run tests in Java 8 with the source compiled in Java 11
77+
run: .kokoro/build.sh
78+
env:
79+
JOB_TYPE: test
80+
JOB_NAME: units-8-runtime-${{matrix.java}}
81+
working-directory: sdk-platform-java
4882
windows:
4983
runs-on: windows-latest
5084
steps:

0 commit comments

Comments
 (0)