Skip to content

Commit

Permalink
ci: add coverage-badge
Browse files Browse the repository at this point in the history
  • Loading branch information
Strobotti committed Apr 30, 2024
1 parent 88692ee commit 9c745b5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,26 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: /tmp/composer-cache
key: "${{ runner.os }}-${{ hashFiles('**/composer.lock') }}"

- name: Install Composer
uses: php-actions/composer@v6

- name: Run PHPUnit
run: php -d xdebug.mode=coverage ./vendor/bin/phpunit

- name: Make Coverage Badge
uses: action-badges/[email protected]
with:
file-name: coverage.svg
badge-branch: gh-pages
coverage-file-name: tests/coverage.latest/coverage.xml
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Execute Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@v3
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# php-jwk

[![Latest Stable Version](https://poser.pugx.org/strobotti/php-jwk/v/stable)](https://packagist.org/packages/strobotti/php-jwk)
![coverage](https://raw.githubusercontent.com/Strobotti/php-jwk/gh-pages/.badges/master/coverage.svg)
[![License](https://poser.pugx.org/strobotti/php-jwk/license)](https://packagist.org/packages/strobotti/php-jwk)

A small PHP library to handle JWKs (Json Web Keys)
Expand Down

0 comments on commit 9c745b5

Please sign in to comment.