|
1 | 1 | # Configuration for Java CI |
| 2 | +# To force the execution of this workflow, add [run java] to your commit message |
2 | 3 | name: 'CI - Java' |
3 | 4 |
|
4 | 5 | on: |
|
24 | 25 | bazel-target-prefix: '//java' |
25 | 26 |
|
26 | 27 | build: |
27 | | - if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }} |
| 28 | + if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[run java]') == true }} |
28 | 29 | needs: check_workflow |
29 | 30 | runs-on: ubuntu-latest |
30 | 31 | steps: |
|
51 | 52 | command: build grid |
52 | 53 |
|
53 | 54 | small_tests: |
54 | | - if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }} |
| 55 | + if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[run java]') == true }} |
55 | 56 | needs: [ check_workflow, build ] |
56 | 57 | runs-on: ubuntu-latest |
57 | 58 | steps: |
|
86 | 87 | SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
87 | 88 |
|
88 | 89 | lint: |
89 | | - if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }} |
| 90 | + if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[run java]') == true }} |
90 | 91 | needs: [ check_workflow, build ] |
91 | 92 | runs-on: ubuntu-latest |
92 | 93 | steps: |
@@ -114,7 +115,7 @@ jobs: |
114 | 115 | query: attr(tags, lint, tests(//java/...)) |
115 | 116 |
|
116 | 117 | browser_tests: |
117 | | - if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }} |
| 118 | + if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[run java]') == true }} |
118 | 119 | needs: [ check_workflow, small_tests ] |
119 | 120 | runs-on: ubuntu-latest |
120 | 121 | strategy: |
@@ -171,7 +172,7 @@ jobs: |
171 | 172 | DISPLAY: :99 |
172 | 173 |
|
173 | 174 | server_tests: |
174 | | - if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }} |
| 175 | + if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[run java]') == true }} |
175 | 176 | needs: [ check_workflow, small_tests ] |
176 | 177 | runs-on: ubuntu-latest |
177 | 178 | strategy: |
@@ -229,7 +230,7 @@ jobs: |
229 | 230 | DISPLAY: :99 |
230 | 231 |
|
231 | 232 | rc_tests: |
232 | | - if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }} |
| 233 | + if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[run java]') == true }} |
233 | 234 | needs: [ check_workflow, small_tests ] |
234 | 235 | runs-on: ubuntu-latest |
235 | 236 | steps: |
@@ -266,7 +267,7 @@ jobs: |
266 | 267 | DISPLAY: :99 |
267 | 268 |
|
268 | 269 | javadoc: |
269 | | - if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }} |
| 270 | + if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[run java]') == true }} |
270 | 271 | needs: [ check_workflow, build ] |
271 | 272 | runs-on: ubuntu-latest |
272 | 273 | steps: |
|
0 commit comments