Skip to content

Updated code to be compatible with php-etl/pipeline-contracts:0.5 #10

Updated code to be compatible with php-etl/pipeline-contracts:0.5

Updated code to be compatible with php-etl/pipeline-contracts:0.5 #10

Workflow file for this run

name: PHPUnit
on: push
jobs:
phpunit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: composer:v2
coverage: pcov
extensions: zip, xdebug
- uses: actions/cache@v3
with:
path: '**/vendor'
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: php-actions/composer@v6
with:
args: --prefer-dist
php_version: '8.2'
php_extensions: zip xdebug
- name: Run tests & generate Coverage
run: bin/phpunit --coverage-html var/coverage
- name: Store coverage files
uses: actions/upload-artifact@v3
with:
path: var/coverage