Skip to content

Commit

Permalink
Merge pull request #35 from novaway/ci-code-coverage
Browse files Browse the repository at this point in the history
Enable code coverage in CI
  • Loading branch information
jdecool authored Oct 23, 2023
2 parents 76d2418 + a879fa9 commit 33ce98e
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 6 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,10 @@ jobs:
env:
COMPOSER_FLAGS: ${{ matrix.flags }}
- name: Run PHPUnit
run: vendor/bin/phpunit
run: vendor/bin/phpunit --coverage-clover=coverage.xml
- name: Analyze code coverage
uses: timkrase/phpunit-coverage-badge@v1.2.0
with:
report: coverage.xml
push_badge: true
repo_token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ tools/
vendor/
.php-cs-fixer.cache
composer.lock
coverage.xml
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fnovaway%2FNovawayFeatureFlagBundle%2Fbadge%3Fref%3Dmaster&style=flat)](https://actions-badge.atrox.dev/Novaway/NovawayFeatureFlagBundle/goto?ref=master)
[![Latest Stable Version](https://poser.pugx.org/novaway/feature-flag-bundle/v/stable.png)](https://packagist.org/packages/novaway/feature-flag-bundle)
![Coverage](coverage_badge.svg)

The FeatureFlagBundle is a bundle to manage features flags in your Symfony applications.

Expand Down
16 changes: 16 additions & 0 deletions coverage_badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 0 additions & 5 deletions src/Twig/Extension/FeatureFlagExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,4 @@ public function getFunctions(): array
new TwigFunction('isFeatureDisabled', $this->manager->isDisabled(...)),
];
}

public function getName(): string
{
return 'feature_flag_extension';
}
}

0 comments on commit 33ce98e

Please sign in to comment.