Skip to content

Upgrade SCIP bindings to 0.9 #55

Upgrade SCIP bindings to 0.9

Upgrade SCIP bindings to 0.9 #55

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
format:
runs-on: ubuntu-latest
name: Formatting
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- uses: gradle/actions/setup-gradle@v4
with:
gradle-version: 9.4.1
- run: gradle spotlessCheck --no-daemon
kotlin_plugin:
runs-on: ubuntu-latest
name: scip-kotlinc
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- uses: gradle/actions/setup-gradle@v4
with:
gradle-version: 9.4.1
- name: scip-kotlinc tests
run: gradle :scip-kotlinc:test --no-daemon
docker_test:
runs-on: ubuntu-latest
name: Docker CLI tests
steps:
- uses: actions/checkout@v4
- name: Build Dockerised CLI
run: docker build -t sourcegraph/scip-java:latest .
- name: Test repos
shell: bash
run: |
set -eu
check_repo() {
REPO=$1
mkdir -p ".repos/$REPO"
git clone "https://github.com/$REPO.git" ".repos/$REPO" && cd ".repos/$REPO" && git submodule update --init
docker run -v "$PWD/.repos/$REPO:/sources" -w /sources sourcegraph/scip-java:latest scip-java index
file ".repos/$REPO/index.scip" || (echo "$REPO SCIP index doesn't exist!"; exit 1)
}
sudo apt install parallel
export -f check_repo
parallel -j4 check_repo ::: circe/circe indeedeng/iwf-java-sdk