Skip to content

fix carbon mapper with null values #591

fix carbon mapper with null values

fix carbon mapper with null values #591

Workflow file for this run

name: CI
on: [push, pull_request, pull_request_target]
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
uses: php-actions/composer@v6
with:
php_version: "8.2"
- name: PHPUnit Tests
uses: php-actions/phpunit@v3
with:
php_version: "8.2"
php_extensions: pcov
bootstrap: vendor/autoload.php
configuration: phpunit.xml
memory_limit: 1G
test_suffix: Test.php
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: tests/resources/clover.xml
- name: Check test coverage
id: test-coverage
uses: johanvanhelden/gha-clover-test-coverage-check@v1
with:
percentage: "100"
filename: "./tests/resources/clover.xml"
- name: phpunit-coverage-badge
uses: timkrase/[email protected]
with:
report: ./tests/resources/clover.xml
report_type: clover
coverage_badge_path: ./.github/coverage.svg
push_badge: true
repo_token: ${{ secrets.GITHUB_TOKEN }}