Update docker/login-action action to v4 #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| 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 |