File tree Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 46
46
- name : Run mutation tests
47
47
run : XDEBUG_MODE=coverage php vendor/bin/infection --show-mutations --min-msi=${{ env.MINIMUM_MSI_PERCENTAGE }} --threads=4
48
48
49
+
50
+ integration :
51
+ name : " Integration testing"
52
+ runs-on : ${{ matrix.os }}
53
+ continue-on-error : true
54
+
55
+ strategy :
56
+ matrix :
57
+ os : [ "ubuntu-latest" ]
58
+ neo4j-version : ["4.2", "4.3", "4.4"]
59
+ php-version : [ "8.1" ]
60
+
61
+ services :
62
+ neo4j :
63
+ image : neo4j:${{ matrix.neo4j-version }}
64
+ env :
65
+ NEO4J_AUTH : neo4j/test
66
+ NEO4JLABS_PLUGINS : ' ["apoc"]'
67
+ ports :
68
+ - 7687:7687
69
+ - 7474:7474
70
+ options : >-
71
+ --health-cmd "wget -q --method=HEAD http://localhost:7474 || exit 1"
72
+ --health-start-period "60s"
73
+ --health-interval "30s"
74
+ --health-timeout "15s"
75
+ --health-retries "5"
76
+
77
+ env :
78
+ NEO4J_CONNECTIONS : bolt://neo4j:test@localhost,http://neo4j:test@localhost
79
+
80
+ steps :
81
+ - name : Checkout repository
82
+ uses : actions/checkout@v3
83
+
84
+ - name : Setup PHP
85
+ uses : shivammathur/setup-php@v2
86
+ with :
87
+ php-version : ${{ matrix.php-version }}
88
+ ini-values : memory_limit=512M
89
+ tools : composer:${{ env.COMPOSER_VERSION }}
90
+
91
+ - name : Install dependencies
92
+ run : composer install --no-interaction --prefer-dist --no-progress
93
+
94
+ - name : Run integration tests
95
+ run : php vendor/bin/phpunit --testsuite integration --no-coverage
96
+
97
+
49
98
lint :
50
99
name : " Linting"
51
100
runs-on : ${{ matrix.os }}
Original file line number Diff line number Diff line change 8
8
<testsuite name =" unit" >
9
9
<directory >tests/Unit</directory >
10
10
</testsuite >
11
+ <testsuite name =" integration" >
12
+ <directory >tests/Integration</directory >
13
+ </testsuite >
11
14
</testsuites >
12
15
<coverage processUncoveredFiles =" true" cacheDirectory =" coverage/cache" pathCoverage =" true" >
13
16
<report >
You can’t perform that action at this time.
0 commit comments