Skip to content

Commit

Permalink
Update unit tests and add badge
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-mendonca committed Jul 3, 2024
1 parent 1f7fb2e commit a8c15ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/phpunit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,12 @@ on:
workflow_dispatch:

jobs:
# Runs PHPUnit testing.
#
# Violations are reported inline with annotations.
# Creates a PHPUnit test job for each PHP/MySQL combination.
#
# Performs the following steps:
# - Checks out the repository.
# - Sets up PHP.
# - Logs debug information.
# - Installs Composer dependencies (use cache if possible).
# - Runs PHPUnit on the full codebase.
phpunit:
name: PHP ${{ matrix.php || '7.4' }} | ${{ 'mariadb' == matrix.db-type && 'MariaDB' || 'MySQL' }}
uses: pedro-mendonca/Translation-Stats/.github/workflows/reusable-phpunit-tests.yml@dev
uses: pedro-mendonca/Translation-Stats/.github/workflows/reusable-phpunit-tests.yml@master

strategy:
fail-fast: false
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Show plugins translation stats on your WordPress install.
[![WordPress Plugin: Tested WP Version](https://img.shields.io/wordpress/plugin/tested/translation-stats.svg?label=WordPress%20Tested&logo=wordpress)](https://wordpress.org/plugins/translation-stats/)

[![Coding Standards](https://github.com/pedro-mendonca/Translation-Stats/actions/workflows/coding-standards.yml/badge.svg)](https://github.com/pedro-mendonca/Translation-Stats/actions/workflows/coding-standards.yml)
[![Unit Tests](https://github.com/pedro-mendonca/Translation-Stats/actions/workflows/phpunit-tests.yml/badge.svg)](https://github.com/pedro-mendonca/Translation-Stats/actions/workflows/phpunit-tests.yml)
[![Static Analysis](https://github.com/pedro-mendonca/Translation-Stats/actions/workflows/static-analysis.yml/badge.svg)](https://github.com/pedro-mendonca/Translation-Stats/actions/workflows/static-analysis.yml)
[![WP Plugin Check](https://github.com/pedro-mendonca/Translation-Stats/actions/workflows/plugin-check.yml/badge.svg)](https://github.com/pedro-mendonca/Translation-Stats/actions/workflows/plugin-check.yml)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/bcd1b44a1d6542e2b75b7b479ce56804)](https://www.codacy.com/app/pedro-mendonca/Translation-Stats?utm_source=github.com&utm_medium=referral&utm_content=pedro-mendonca/Translation-Stats&utm_campaign=Badge_Grade)
Expand Down

0 comments on commit a8c15ab

Please sign in to comment.