Update neo4j-go-driver to v5.20.0 #108
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: | |
pull_request: | |
branches: | |
- "*" | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./neo4j-datasource-plugin | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
cache: "npm" | |
cache-dependency-path: "./neo4j-datasource-plugin/package-lock.json" | |
- name: Install dependencies | |
run: npm ci | |
- name: Check types | |
run: npm run typecheck | |
- name: Lint | |
run: npm run lint | |
- name: Unit tests | |
run: npm run test:ci | |
- name: Build frontend | |
run: npm run build | |
- name: Setup Go environment | |
uses: actions/setup-go@v3 | |
with: | |
go-version: "1.20" | |
- name: Go Flags | |
run: export GOFLAGS=-buildvcs=false | |
- name: Build backend | |
uses: magefile/mage-action@v2 | |
with: | |
version: latest | |
args: buildAll | |
workdir: ./neo4j-datasource-plugin | |
- name: Start Neo4J with docker-compose | |
run: docker-compose -f ../docker-compose.dev.yaml up -d neo4j neo4j-provisioning | |
- name: Show docker container | |
run: docker ps | |
- name: Wait for provisioning | |
shell: bash | |
run: while docker ps | grep "provisioning" > /dev/null; do sleep 1; echo "still provisioning..."; done | |
- name: Show docker container | |
run: docker ps | |
- name: Test backend | |
uses: magefile/mage-action@v2 | |
with: | |
version: latest | |
args: coverage | |
workdir: ./neo4j-datasource-plugin | |
# - name: Run e2e tests | |
# run: npm run e2e | |
# - name: Archive E2E output | |
# uses: actions/upload-artifact@v3 | |
# if: steps.run-e2e-tests.outcome != 'success' | |
# with: | |
# name: cypress-videos | |
# path: cypress/videos | |
# retention-days: 5 | |
# workdir: ./neo4j-datasource-plugin | |
- name: Stop Neo4J with docker-compose | |
run: docker-compose -f ../docker-compose.dev.yaml down -v |