|
83 | 83 | - name: Check the results |
84 | 84 | run: .github/scripts/check-test-results.sh |
85 | 85 |
|
| 86 | + |
| 87 | + # A second, separate build in the same directory that nothing used to run. |
| 88 | + # It carried a <parent> pointing at the private gudusoft:gsp_java reactor, |
| 89 | + # so it only built where that POM happened to be installed. Also asserts it |
| 90 | + # leaves the root build's target/classes alone (issue #39). |
| 91 | + - name: Build the separate dlineage POM |
| 92 | + shell: bash |
| 93 | + run: | |
| 94 | + set -euo pipefail |
| 95 | + before=$(find target/classes -name '*.class' | wc -l) |
| 96 | + mvn -B -f pom_dlineage.xml package -DskipTests |
| 97 | + after=$(find target/classes -name '*.class' | wc -l) |
| 98 | + if [ "$before" != "$after" ]; then |
| 99 | + echo "::error::pom_dlineage.xml changed the root build's target/classes ($before -> $after); see issue #39" |
| 100 | + exit 1 |
| 101 | + fi |
| 102 | + ls -l target-dlineage/*.jar |
| 103 | +
|
86 | 104 | - name: Every demo starts |
87 | 105 | run: .github/scripts/run-all-demos.sh --timeout 90 |
88 | 106 |
|
@@ -153,6 +171,24 @@ jobs: |
153 | 171 | - name: Check the results |
154 | 172 | run: .github/scripts/check-test-results.sh |
155 | 173 |
|
| 174 | + |
| 175 | + # A second, separate build in the same directory that nothing used to run. |
| 176 | + # It carried a <parent> pointing at the private gudusoft:gsp_java reactor, |
| 177 | + # so it only built where that POM happened to be installed. Also asserts it |
| 178 | + # leaves the root build's target/classes alone (issue #39). |
| 179 | + - name: Build the separate dlineage POM against the newest release |
| 180 | + shell: bash |
| 181 | + run: | |
| 182 | + set -euo pipefail |
| 183 | + before=$(find target/classes -name '*.class' | wc -l) |
| 184 | + mvn -B -f pom_dlineage.xml package -DskipTests -Dgsp.core.version=${{ steps.ver.outputs.version }} |
| 185 | + after=$(find target/classes -name '*.class' | wc -l) |
| 186 | + if [ "$before" != "$after" ]; then |
| 187 | + echo "::error::pom_dlineage.xml changed the root build's target/classes ($before -> $after); see issue #39" |
| 188 | + exit 1 |
| 189 | + fi |
| 190 | + ls -l target-dlineage/*.jar |
| 191 | +
|
156 | 192 | - name: Every demo starts |
157 | 193 | env: |
158 | 194 | MVN_ARGS: -Dgsp.core.version=${{ steps.ver.outputs.version }} |
|
0 commit comments