mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-05-06 15:36:39 +02:00
show workflow badges
This commit is contained in:
parent
69862cc6f6
commit
86433a9433
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
4
.github/workflows/php.yml
vendored
4
.github/workflows/php.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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/):
|
||||
|
|
|
@ -38,6 +38,12 @@
|
|||
}
|
||||
},
|
||||
|
||||
"scripts": {
|
||||
"test": [
|
||||
"php ./vendor/bin/phpunit"
|
||||
]
|
||||
},
|
||||
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Knp\\Bundle\\MarkdownBundle\\Tests\\": "tests/"
|
||||
|
|
Loading…
Reference in a new issue