|
34 | 34 | filters: | |
35 | 35 | library: |
36 | 36 | - 'google-auth-library-java/**' |
37 | | - units: |
38 | | - needs: filter |
39 | | - if: ${{ needs.filter.outputs.library == 'true' }} |
40 | | - runs-on: ubuntu-latest |
41 | | - strategy: |
42 | | - fail-fast: false |
43 | | - matrix: |
44 | | - java: [11, 17, 21, 25] |
45 | | - steps: |
46 | | - - uses: actions/checkout@v4 |
47 | | - - uses: actions/setup-java@v4 |
48 | | - with: |
49 | | - distribution: temurin |
50 | | - java-version: ${{matrix.java}} |
51 | | - - run: java -version |
52 | | - - run: .kokoro/build.sh |
53 | | - env: |
54 | | - JOB_TYPE: test |
55 | 37 | units-logging: |
56 | 38 | needs: filter |
57 | 39 | if: ${{ needs.filter.outputs.library == 'true' }} |
|
69 | 51 | - run: java -version |
70 | 52 | - run: .kokoro/build.sh |
71 | 53 | env: |
72 | | - JOB_TYPE: test-logging |
73 | | - units-java8: |
74 | | - needs: filter |
75 | | - if: ${{ needs.filter.outputs.library == 'true' }} |
76 | | - # Building using Java 17 and run the tests with Java 8 runtime |
77 | | - name: "units (8)" |
78 | | - runs-on: ubuntu-latest |
79 | | - steps: |
80 | | - - uses: actions/checkout@v4 |
81 | | - - uses: actions/setup-java@v4 |
82 | | - with: |
83 | | - java-version: 8 |
84 | | - distribution: temurin |
85 | | - - name: "Set jvm system property environment variable for surefire plugin (unit tests)" |
86 | | - # Maven surefire plugin (unit tests) allows us to specify JVM to run the tests. |
87 | | - # https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#jvm |
88 | | - run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java -P !java17" >> $GITHUB_ENV |
89 | | - shell: bash |
90 | | - - uses: actions/setup-java@v4 |
91 | | - with: |
92 | | - java-version: 17 |
93 | | - distribution: temurin |
94 | | - - run: .kokoro/build.sh |
95 | | - env: |
96 | | - JOB_TYPE: test |
97 | | - windows: |
98 | | - needs: filter |
99 | | - if: ${{ needs.filter.outputs.library == 'true' }} |
100 | | - runs-on: windows-latest |
101 | | - steps: |
102 | | - - name: Support longpaths |
103 | | - run: git config --system core.longpaths true |
104 | | - - name: Support longpaths |
105 | | - run: git config --system core.longpaths true |
106 | | - - uses: actions/checkout@v4 |
107 | | - - uses: actions/setup-java@v4 |
108 | | - with: |
109 | | - distribution: temurin |
110 | | - java-version: 8 |
111 | | - - run: java -version |
112 | | - - run: .kokoro/build.sh |
113 | | - env: |
| 54 | + BUILD_SUBDIR: google-auth-library-java |
114 | 55 | JOB_TYPE: test |
115 | | - dependencies: |
116 | | - needs: filter |
117 | | - if: ${{ needs.filter.outputs.library == 'true' }} |
118 | | - runs-on: ubuntu-latest |
119 | | - strategy: |
120 | | - matrix: |
121 | | - java: [17] |
122 | | - steps: |
123 | | - - uses: actions/checkout@v4 |
124 | | - - uses: actions/setup-java@v4 |
125 | | - with: |
126 | | - distribution: temurin |
127 | | - java-version: ${{matrix.java}} |
128 | | - - run: java -version |
129 | | - - run: .kokoro/dependencies.sh |
130 | | - javadoc: |
131 | | - needs: filter |
132 | | - if: ${{ needs.filter.outputs.library == 'true' }} |
133 | | - runs-on: ubuntu-latest |
134 | | - steps: |
135 | | - - uses: actions/checkout@v4 |
136 | | - - uses: actions/setup-java@v4 |
137 | | - with: |
138 | | - distribution: temurin |
139 | | - java-version: 17 |
140 | | - - run: java -version |
141 | | - - run: .kokoro/build.sh |
142 | | - env: |
143 | | - JOB_TYPE: javadoc |
144 | | - lint: |
145 | | - needs: filter |
146 | | - if: ${{ needs.filter.outputs.library == 'true' }} |
147 | | - runs-on: ubuntu-latest |
148 | | - steps: |
149 | | - - uses: actions/checkout@v4 |
150 | | - - uses: actions/setup-java@v4 |
151 | | - with: |
152 | | - distribution: temurin |
153 | | - java-version: 17 |
154 | | - - run: java -version |
155 | | - - run: .kokoro/build.sh |
156 | | - env: |
157 | | - JOB_TYPE: lint |
| 56 | + SUREFIRE_JVM_OPT: "-P '!slf4j2x,slf4j2x-test'" |
0 commit comments