1818
1919 - uses : gradle/actions/setup-gradle@v6
2020 with :
21- gradle-version : 9.8.2
21+ gradle-version : 9.9.0
2222
2323 - run : gradle spotlessCheck --no-daemon
2424
3535
3636 - uses : gradle/actions/setup-gradle@v6
3737 with :
38- gradle-version : 9.8.2
38+ gradle-version : 9.9.0
3939
4040 - name : scip-kotlin-analysis tests
4141 run : gradle :scip-kotlin-analysis:test --no-daemon
@@ -49,23 +49,21 @@ jobs:
4949 - name : Build Dockerised CLI
5050 run : docker build -t ghcr.io/scip-code/scip-java:latest .
5151
52- - name : Test repos
52+ - name : Test Maven and Gradle fixtures
5353 shell : bash
5454 run : |
55- set -eu
56- check_repo() {
57- REPO=$1
58- mkdir -p ".repos/$REPO"
59- git clone "https://github.com/$REPO.git" ".repos/$REPO" && cd ".repos/$REPO" && git submodule update --init
55+ set -euo pipefail
56+ for fixture in maven/basic gradle/kotlin2; do
57+ repo_dir="$(mktemp -d "$RUNNER_TEMP/scip-java-docker.XXXXXX")"
58+ cp -R "scip-java/src/test/resources/fixtures/$fixture/." "$repo_dir/"
6059
61- docker run -v "$PWD/.repos/$REPO:/sources" -w /sources ghcr.io/scip-code/scip-java:latest scip-java index
62- file ".repos/$REPO/index.scip" || (echo "$REPO SCIP index doesn't exist!"; exit 1)
63- }
64-
65- sudo apt install parallel
66- export -f check_repo
67-
68- parallel -j4 check_repo ::: circe/circe indeedeng/iwf-java-sdk
60+ echo "Indexing $fixture"
61+ # Match the Kotlin fixture's JDK 17 toolchain without relying on fallback.
62+ docker run --rm --env JVM_VERSION=17 \
63+ --mount "type=bind,source=$repo_dir,target=/sources" \
64+ -w /sources ghcr.io/scip-code/scip-java:latest scip-java index
65+ test -s "$repo_dir/index.scip"
66+ done
6967
7068 ci-pass :
7169 if : always()
0 commit comments