show workflow badges

This commit is contained in:
Tac Tacelosky 2021-11-08 06:58:03 -05:00
parent 69862cc6f6
commit 86433a9433
4 changed files with 22 additions and 6 deletions

View file

@ -7,8 +7,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: php-actions/composer@v5 # or alternative dependency management
- uses: php-actions/phpunit@v9
# ... then your own project steps ...
- uses: actions/checkout@v2
- uses: php-actions/composer@v5
- name: PHPUnit Tests
uses: php-actions/phpunit@v2
env:
TEST_NAME: PHPUNIT
with:
bootstrap: vendor/autoload.php
configuration: phpunit.xml
args: --coverage-text

View file

@ -32,5 +32,5 @@ jobs:
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md
# - name: Run test suite
# run: composer run-script test
- name: Run test suite
run: composer run-script test

View file

@ -2,6 +2,9 @@ Provide markdown conversion (based on [Michel Fortin work](https://github.com/mi
[![Build Status](https://secure.travis-ci.org/KnpLabs/KnpMarkdownBundle.svg)](http://travis-ci.org/KnpLabs/KnpMarkdownBundle)
![ci.yml](https://github.com/tacman/KnpMarkdownBundle/actions/workflows/ci.yml/badge.svg)
![php.yml](https://github.com/tacman/KnpMarkdownBundle/actions/workflows/php.yml/badge.svg)
## INSTALLATION
Add KnpMarkdownBundle to your project via [Composer](https://getcomposer.org/):

View file

@ -38,6 +38,12 @@
}
},
"scripts": {
"test": [
"php ./vendor/bin/phpunit"
]
},
"autoload-dev": {
"psr-4": {
"Knp\\Bundle\\MarkdownBundle\\Tests\\": "tests/"