-
Notifications
You must be signed in to change notification settings - Fork 5
56 lines (49 loc) · 1.4 KB
/
test.yml
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
name: Test
on:
pull_request:
push:
branches:
- master
- develop
jobs:
Unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Node Setup & Yarn Install
uses: ./.github/actions/setup
- name: Tests
run: yarn test --reporters=github-actions
E2E:
name: E2E Tests (${{ matrix.shard }}/6)
runs-on: ubuntu-latest
services:
neo4j:
image: neo4j:5.10-enterprise
ports:
- 7687:7687
env:
NEO4J_ACCEPT_LICENSE_AGREEMENT: yes
NEO4J_PLUGINS: '["apoc"]'
NEO4J_dbms_security_auth__enabled: 'false'
NEO4J_dbms_security_procedures_unrestricted: apoc.*
NEO4J_dbms_connector_bolt_enabled: 'true'
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
strategy:
matrix:
shard: [1, 2, 3, 4, 5, 6]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Node Setup & Yarn Install
uses: ./.github/actions/setup
- name: E2E Tests
run: yarn test:e2e --shard=${{ matrix.shard }}/6 --reporters=github-actions
env:
NEO4J_VERSION: ${{ matrix.neo4j-version }}