File tree Expand file tree Collapse file tree 2 files changed +38
-9
lines changed Expand file tree Collapse file tree 2 files changed +38
-9
lines changed Original file line number Diff line number Diff line change 1- name : Quality Assurance
1+ name : CI tests
22
33on : [workflow_dispatch, push, pull_request]
44
5+ env :
6+ DB_ENDPOINT : ' tcp://127.0.0.1:8529'
7+
58jobs :
69 run :
710 runs-on : ubuntu-latest
8- name : Code Quality Assurance
11+ strategy :
12+ matrix :
13+ php : [8.0, 8.1]
14+ arangodb : [3.7, 3.8]
15+ name : Quality checks PHP ${{ matrix.php }} / ArangoDB ${{ matrix.arangodb }}
16+
17+ services :
18+ arangodb :
19+ image : arangodb:${{ matrix.arangodb }}
20+ ports :
21+ - 8529:8529
22+ env :
23+ ARANGO_NO_AUTH : 1
924
1025 steps :
1126 - name : Checkout
@@ -15,12 +30,12 @@ jobs:
1530 uses : actions/cache@v1
1631 with :
1732 path : ~/.composer/cache/files
18- key : dependencies-composer-${{ hashFiles('composer.json') }}
33+ key : dependencies-composer-${{ hashFiles('composer.json') }}-php-${{ matrix.php }}
1934
2035 - name : Setup PHP
2136 uses : shivammathur/setup-php@v2
2237 with :
23- php-version : 8.1
38+ php-version : ${{ matrix.php }}
2439 extensions : mbstring, intl
2540 ini-values : post_max_size=256M, short_open_tag=On
2641 coverage : none
3045 run : |
3146 composer update --prefer-dist --no-interaction
3247
33- - name : Run all QA checks
48+ - name : Run all QA tests
3449 if : ${{ always() }}
3550 run : |
3651 chmod +x "${GITHUB_WORKSPACE}/bin/qa.sh"
3752 "${GITHUB_WORKSPACE}/bin/qa.sh"
53+ env :
54+ ARANGODB_VERSION : ${{ matrix.arangodb }}
Original file line number Diff line number Diff line change @@ -2,9 +2,12 @@ name: run-tests
22
33on :
44 push :
5- branches : [next ]
5+ branches : [main ]
66 pull_request :
7- branches : [next]
7+ branches : [main]
8+
9+ env :
10+ DB_ENDPOINT : ' tcp://127.0.0.1:8529'
811
912jobs :
1013 test :
@@ -13,10 +16,19 @@ jobs:
1316 fail-fast : true
1417 matrix :
1518 os : [ubuntu-latest]
16- php : [8.0, 8.1]
19+ arangodb : [3.8, 3.9]
20+ php : ["8.0", "8.1"]
1721 stability : [prefer-stable]
1822
19- name : P${{ matrix.php }}
23+ name : P${{ matrix.php }} - A${{ matrix.arangodb }} - ${{ matrix.stability }}
24+
25+ services :
26+ arangodb :
27+ image : arangodb:${{ matrix.arangodb }}
28+ ports :
29+ - 8529:8529
30+ env :
31+ ARANGO_NO_AUTH : 1
2032
2133 steps :
2234 - name : Checkout code
You can’t perform that action at this time.
0 commit comments