File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change 21
21
# Set job outputs to values from filter step
22
22
outputs :
23
23
codechange : ${{ steps.filter.outputs.codechange }}
24
+ uichange : ${{ steps.filter.outputs.uichange }}
24
25
steps :
25
26
# For pull requests it's not necessary to checkout the code
26
27
- uses : dorny/paths-filter@v2
29
30
filters : |
30
31
codechange:
31
32
- '!presto-docs/**'
33
+ - uses : dorny/paths-filter@v2
34
+ id : ui_filter
35
+ with :
36
+ filters : |
37
+ uichange:
38
+ - 'presto-ui/**'
32
39
33
40
test :
34
41
runs-on : ubuntu-latest
46
53
- " :presto-tests -P ci-only-distributed-queries"
47
54
- " :presto-tests -P ci-only-aggregation-queries"
48
55
- " :presto-tests -P ci-only-plan-determinism"
49
- - " :presto-tests -P ci-only-resource-manager"
56
+ - " :presto-tests -P ci-only-resource-manager"
50
57
- " :presto-accumulo"
51
58
- " :presto-cassandra -P test-cassandra-integration-smoke-test"
52
59
- " :presto-hive"
89
96
- name : Maven Install
90
97
if : needs.changes.outputs.codechange == 'true'
91
98
run : |
92
- export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}"
99
+ if [ "${{ needs.changes.outputs.uichange }}" != "true" ]; then
100
+ EXTRA_ARGS="-DskipUI"
101
+ else
102
+ EXTRA_ARGS=""
103
+ fi
104
+ export MAVEN_OPTS="${MAVEN_INSTALL_OPTS} ${EXTRA_ARGS}"
93
105
./mvnw install ${MAVEN_FAST_INSTALL} -am -pl $(echo '${{ matrix.modules }}' | cut -d' ' -f1)
94
106
- name : Maven Tests
95
107
if : needs.changes.outputs.codechange == 'true'
96
- run : ./mvnw test ${MAVEN_TEST} -pl ${{ matrix.modules }}
108
+ run : |
109
+ if [ "${{ needs.changes.outputs.uichange }}" != "true" ]; then
110
+ EXTRA_ARGS="-DskipUI"
111
+ else
112
+ EXTRA_ARGS=""
113
+ fi
114
+ ./mvnw test ${MAVEN_TEST} ${EXTRA_ARGS} -pl ${{ matrix.modules }}
You can’t perform that action at this time.
0 commit comments