Skip to content

Commit

Permalink
CI: Run tests against Codeception 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Naktibalda committed Apr 28, 2022
1 parent 7aec0cf commit 13ecfeb
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,38 @@ jobs:
- name: Run test suite
run: cd vendor/codeception/codeception && php ./codecept run coverage

codeception5:
runs-on: ubuntu-latest

strategy:
matrix:
php: [8.0, 8.1]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Use Composer v2
run: composer self-update --2

- name: Validate composer.json
run: composer validate

- name: Install dependencies
run: |
composer require codeception/codeception:"5.0.x-dev as 5.0.0" --dev --prefer-source
composer require codeception/module-filesystem:"^3.0" codeception/module-cli:"^2.0" codeception/module-asserts:"^3.0" codeception/module-phpbrowser:"^3.0" --dev
cp c3.php vendor/codeception/codeception/tests/data/claypit
- name: Start PHP Server
run: |
cd vendor/codeception/codeception && php -S 127.0.0.1:8008 -t tests/data/app -d pcov.directory=$(pwd)/tests/data/app >/dev/null 2>&1 &
- name: Run test suite
run: cd vendor/codeception/codeception && php ./codecept run coverage

0 comments on commit 13ecfeb

Please sign in to comment.