Skip to content

Commit

Permalink
Update PHPUnit workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danielburger1337 committed Feb 24, 2024
1 parent 8e4b911 commit 5c31835
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,40 +16,19 @@ jobs:
operating-system: [ubuntu-latest]
php-versions: ["8.1", "8.2"]

name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}

env:
PHP_EXTENSIONS: mbstring
key: cache-v1
name: PHPUnit with PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }}

steps:
- uses: actions/checkout@v3

- name: Setup Cache environment
id: extcache
uses: shivammathur/cache-extensions@v1
with:
php-version: ${{ matrix.php-versions }}
extensions: ${{ env.PHP_EXTENSIONS }}
key: ${{ env.key }}

- name: Cache PHP extensions
uses: actions/cache@v3
with:
path: ${{ steps.extcache.outputs.dir }}
key: ${{ steps.extcache.outputs.key }}
restore-keys: ${{ steps.extcache.outputs.key }}
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: ${{ env.PHP_EXTENSIONS }}

###> Composer ###
- name: Install Composer packages
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
###< Composer ###

- name: Execute tests via PHPUnit
- name: Run PHPUnit
run: $GITHUB_WORKSPACE/vendor/bin/phpunit

0 comments on commit 5c31835

Please sign in to comment.