Skip to content

Add end-to-end test tier with a lifecycle smoke test #734

Add end-to-end test tier with a lifecycle smoke test

Add end-to-end test tier with a lifecycle smoke test #734

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
unit:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.4', '8.5', '8.6']
name: Unit Tests - ${{ matrix.php }}
steps:
- uses: actions/checkout@v7
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: pcov
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Install fixture dependencies
run: composer install --prefer-dist --no-progress --working-dir=tests/Fixtures
- name: Run PHPUnit
run: composer unit
--
--coverage-clover coverage.xml
--log-junit junit.xml
- name: Upload coverage reports to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test reports to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
report_type: test_results