Skip to content

Commit cbce67f

Browse files
ci(test-server): stub the unpublished MPL test-vectors artifact for the java build
1 parent da06f1f commit cbce67f

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/test-server.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,21 @@ jobs:
8282
- name: Authenticate the commons clone
8383
run: git config --global url."https://x-access-token:${{ secrets.COMMONS_REPO_PAT }}@github.com/".insteadOf "git@github.com:"
8484

85+
- name: Install stub for the unpublished MPL test-vectors artifact
86+
# The java Language_Server build runs `mvn install`, which resolves a
87+
# test-scope MPL artifact (TestAwsCryptographicMaterialProviders) that is
88+
# not on Maven Central; a stub jar satisfies resolution (its tests skip).
89+
run: |
90+
set -euo pipefail
91+
tmp="$(mktemp -d)"
92+
echo placeholder > "$tmp/README.txt"
93+
"$JAVA_HOME/bin/jar" cf "$tmp/stub.jar" -C "$tmp" README.txt
94+
mvn -q -e org.apache.maven.plugins:maven-install-plugin:3.1.1:install-file \
95+
-Dfile="$tmp/stub.jar" \
96+
-DgroupId=software.amazon.cryptography \
97+
-DartifactId=TestAwsCryptographicMaterialProviders \
98+
-Dversion=1.7.0 \
99+
-Dpackaging=jar
85100
- name: Run the orchestrated TestServer
86101
working-directory: test-server
87102
run: make test-server

0 commit comments

Comments
 (0)