Merge branch 'cloudquery:main' into main #3
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: Destination Plugin Neo4j Workflow | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
paths: | |
- "plugins/destination/neo4j/**" | |
- ".github/workflows/dest_neo4j.yml" | |
push: | |
branches: | |
- main | |
paths: | |
- "plugins/destination/neo4j/**" | |
- ".github/workflows/dest_neo4j.yml" | |
jobs: | |
plugins-destination-neo4j: | |
timeout-minutes: 30 | |
name: "plugins/destination/neo4j" | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./plugins/destination/neo4j | |
services: | |
neo4j: | |
image: neo4j:4.4 | |
env: | |
NEO4J_dbms_security_procedures_unrestricted: apoc.* | |
NEO4J_dbms_connector_bolt_enabled: "true" | |
NEO4J_apoc_import_file_enabled: "true" | |
NEO4J_apoc_export_file_enabled: "true" | |
NEO4J_apoc_import_file_use__neo4j__config: "true" | |
NEO4J_ACCEPT_LICENSE_AGREEMENT: "yes" | |
NEO4J_dbms_security_auth__enabled: "false" | |
NEO4J_dbms_connector_bolt_advertised__address: localhost:7687 | |
options: >- | |
--health-cmd "cypher-shell 'match (n) return count(n)'" | |
--health-timeout 10s | |
--health-retries 20 | |
--health-interval 10s | |
--health-start-period 30s | |
ports: | |
- 7687:7687 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: plugins/destination/neo4j/go.mod | |
cache: true | |
cache-dependency-path: plugins/destination/neo4j/go.sum | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.55.2 | |
working-directory: plugins/destination/neo4j | |
args: "--config ../../.golangci.yml" | |
- name: gen | |
if: github.event_name == 'pull_request' | |
run: make gen | |
- name: Fail if generation updated files | |
if: github.event_name == 'pull_request' | |
run: test "$(git status -s | wc -l)" -eq 0 || (git status -s; exit 1) | |
- name: Build | |
run: go build . | |
- name: Test Neo4j | |
run: make test | |