Skip to content

Commit

Permalink
enh: phpunit -> pest (CI / README.md)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamarton committed Dec 28, 2024
1 parent 0473a21 commit e6cb7a7
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 38 deletions.
74 changes: 37 additions & 37 deletions .github/workflows/phpunit.yml → .github/workflows/pest.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
name: Run PHPUnit Tests

on:
push:
paths-ignore:
- 'README.md'
- 'LICENSE'
- 'CHANGELOG.md'
- 'CONTRIBUTING.md'
- 'doc/**'

jobs:
phpunit:
runs-on: ubuntu-latest

strategy:
matrix:
php-version: [ 8.2, 8.3, 8.4 ]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: xdebug

- name: Install dependencies
run: composer install --no-progress --no-suggest --prefer-dist

- name: Configure Xdebug
run: echo "xdebug.mode=coverage" >> $GITHUB_ENV

- name: Run PHPUnit
run: vendor/bin/phpunit
name: Run Pest Tests

on:
push:
paths-ignore:
- 'README.md'
- 'LICENSE'
- 'CHANGELOG.md'
- 'CONTRIBUTING.md'
- 'doc/**'

jobs:
phpunit:
runs-on: ubuntu-latest

strategy:
matrix:
php-version: [ 8.2, 8.3, 8.4 ]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: xdebug

- name: Install dependencies
run: composer install --no-progress --no-suggest --prefer-dist

- name: Configure Xdebug
run: echo "xdebug.mode=coverage" >> $GITHUB_ENV

- name: Run Pest
run: vendor/bin/pest
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![GitHub Release](https://img.shields.io/github/v/release/smartondev/httpcache?include_prereleases)
[![GitHub License](https://img.shields.io/github/license/smartondev/httpcache)](LICENSE)
![PHPUnit - GitHub Actions](https://img.shields.io/github/actions/workflow/status/smartondev/httpcache/phpunit.yml?label=tests)
![Pest - GitHub Actions](https://img.shields.io/github/actions/workflow/status/smartondev/httpcache/phpunit.yml?label=tests)
![PHPStan level 10 - GitHub Actions](https://img.shields.io/github/actions/workflow/status/smartondev/httpcache/phpstan.yml?label=PHPStan%20level%2010)
[![Coverage Status](https://img.shields.io/coverallsCoverage/github/smartondev/httpcache?label=coveralls)](https://coveralls.io/github/smartondev/httpcache?branch=main)
[![Codecov](https://img.shields.io/codecov/c/github/smartondev/httpcache?label=codecov)](https://app.codecov.io/gh/smartondev/httpcache)
Expand Down

0 comments on commit e6cb7a7

Please sign in to comment.