Skip to content

Commit 31a1219

Browse files
authored
Run Codeception tests in pipeline
1 parent 6df89f7 commit 31a1219

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
tests:
99
name: PHP ${{ matrix.php-version }}-${{ matrix.os }}
1010
env:
11-
extensions: curl, mbstring, dom, intl, json, libxml, xml, xmlwriter, fileinfo
11+
extensions: curl, mbstring, dom, intl, json, libxml, xml, xmlwriter, fileinfo, pdo_sqlite
1212
key: cache-v1
1313

1414
runs-on: ${{ matrix.os }}
@@ -53,9 +53,12 @@ jobs:
5353
php${{ matrix.php }}-composer-
5454
5555
- name: Install dependencies with composer php 7.4
56-
if: matrix.php == '7.4'
56+
if: matrix.php-version == '7.4'
5757
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
5858

5959
- name: Install dependencies with composer php 8.0
60-
if: matrix.php == '8.0'
60+
if: matrix.php-version == '8.0'
6161
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ignore-platform-reqs --ansi
62+
63+
- name: Run tests with codeception
64+
run: php -S 127.0.0.1:8080 -t public public/index-test.php > ./runtime/yii.log 2>&1 & vendor/bin/codecept run acceptance --env github-ci

tests/acceptance.suite.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ modules:
1414
cleanup: true
1515
- App\Tests\Helper\Acceptance
1616
step_decorators: ~
17+
env:
18+
github-ci:
19+
modules:
20+
config:
21+
REST:
22+
url: 'http://127.0.0.1:8080'

0 commit comments

Comments
 (0)