Fixes 3971: Check how to integrate vector databases via rest APIs #1565
This file contains 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: [ "dev" ] | |
pull_request: | |
branches: [ "dev" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_ENTERPRISE_URL: ${{ secrets.DOCKER_ENTERPRISE_DEV_URL }} | |
DOCKER_COMMUNITY_URL: ${{ secrets.DOCKER_COMMUNITY_DEV_URL }} | |
TEAMCITY_DEV_URL: ${{ secrets.TEAMCITY_DEV_URL }} | |
TEAMCITY_USER: ${{ secrets.TEAMCITY_USER }} | |
TEAMCITY_PASSWORD: ${{ secrets.TEAMCITY_PASSWORD }} | |
ENTERPRISE_TAR: enterprise-docker.tar | |
COMMUNITY_TAR: community-docker.tar | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17.0.8' | |
distribution: 'temurin' | |
- name: Download neo4j dev docker container | |
run: | | |
curl -s -L0 -u "${TEAMCITY_USER}:${TEAMCITY_PASSWORD}" -X GET ${DOCKER_ENTERPRISE_URL} -o ${ENTERPRISE_TAR} & | |
curl -s -L0 -u "${TEAMCITY_USER}:${TEAMCITY_PASSWORD}" -X GET ${DOCKER_COMMUNITY_URL} -o ${COMMUNITY_TAR} & | |
wait | |
docker load --input ${ENTERPRISE_TAR} | |
docker load --input ${COMMUNITY_TAR} | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
- name: Build with Gradle | |
run: | | |
chmod +x gradlew | |
./gradlew --init-script init.gradle | |
./gradlew build --parallel | |
- name: Clean neo4j artifacts | |
if: always() # run this step even if previous step failed | |
run: | | |
(find ~/.gradle/caches -name "*neo4j*" -exec rm -rf {} \;) || echo "All neo4j files cleaned" | |
rm -rf ${ENTERPRISE_TAR} ${COMMUNITY_TAR} | |
- name: Archive test results | |
uses: actions/upload-artifact@v2 | |
if: always() | |
with: | |
name: test-results | |
path: | | |
extended/build/reports/tests/test/ |