-
Notifications
You must be signed in to change notification settings - Fork 19
59 lines (57 loc) · 1.78 KB
/
Copy pathneo4j_tests.yml
File metadata and controls
59 lines (57 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Reusable workflow for Neo4j tests
on:
workflow_call:
inputs:
java:
required: true
type: string
python:
required: true
type: string
secrets:
uri:
required: true
user:
required: true
passwd:
required: true
jobs:
neo4j-tests:
name: Run Neo4j tests
runs-on: ubuntu-latest
env:
SPARK_LOCAL_IP: localhost
MAVEN_OPTS: -Xmx1g
steps:
- name: Checkout spark-sql-flow-plugin repository
uses: actions/checkout@v2
# In order to fetch changed files
with:
fetch-depth: 0
- name: Init test env
uses: ./.github/actions/setup
with:
java: ${{ inputs.java }}
python: ${{ inputs.python}}
- name: Run tests
env:
NEO4J_AURADB_URI: ${{ secrets.uri}}
NEO4J_AURADB_USER: ${{ secrets.user}}
NEO4J_AURADB_PASSWD: ${{ secrets.passwd}}
run: |
./build/mvn -q clean package -DskipTests
./build/mvn -q -Dtest=none -DwildcardSuites=org.apache.spark.sql.flow.sink.Neo4jAuraSinkSuite test
./build/mvn -q -Dtest=none -DwildcardSuites=org.apache.spark.sql.flow.TPCDSFlowWithNeo4jAuraSink test
./bin/run-tests --parallelism 1 --testnames test_neo4jaura_sink
- name: Upload test results to report
if: always()
uses: actions/upload-artifact@v2
with:
name: neo4j-test-results-jdk${{ inputs.java }}-python${{ inputs.python}}
path: "./target/surefire-reports/*.xml"
- name: Upload unit tests log files
if: failure()
uses: actions/upload-artifact@v2
with:
name: neo4j-unit-tests-log-jdk${{ inputs.java }}-python${{ inputs.python}}
path: "./target/unit-tests.log"