Skip to content

Commit b9616e6

Browse files
author
Aziz Muzafarov
committed
Fix CI
1 parent 8053cbb commit b9616e6

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/testing-suite.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,24 @@ on: [push, pull_request]
33

44
jobs:
55
run-tests:
6-
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
7-
runs-on: ${{ matrix.operating-system }}
6+
name: PHP ${{ matrix.php-versions }} with Phalcon ${{ matrix.phalcon-versions }}
7+
runs-on: ubuntu-latest
8+
env:
9+
extensions: mbstring, intl, json, phalcon-${{ matrix.phalcon-versions }}, xdebug
10+
key: cache-v0.0.2
811
services:
912
mongodb:
1013
image: mongo:4.2
1114
ports:
1215
- 27017:27017
13-
env:
14-
extensions: mbstring, intl, json, phalcon4, xdebug
15-
key: cache-v0.0.2
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
operating-system: [ubuntu-latest]
2019
php-versions: ['7.2', '7.3', '7.4']
2120
# There is no 4.1.1 version due release bug
2221
phalcon-versions: ['4.0.5', '4.0.6', '4.1.0', '4.1.2']
23-
2422
steps:
2523
- uses: actions/checkout@v1
26-
2724
- name: Setup cache environment
2825
id: cache-env
2926
uses: shivammathur/cache-extensions@v1
@@ -61,11 +58,12 @@ jobs:
6158
- name: Install Composer dependencies
6259
run: composer install --prefer-dist --no-suggest
6360

61+
- name: Copy .env file
62+
run: cp tests/.env.example tests/.env
63+
6464
- name: Setup tests
6565
if: success()
66-
run: |
67-
cp tests/_ci/.env.default .env
68-
vendor/bin/codecept build
66+
run: vendor/bin/codecept build
6967

7068
- name: Run integration tests
7169
if: success()

0 commit comments

Comments
 (0)