Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xHeaven committed May 20, 2023
1 parent 2bc4a1e commit a3819ae
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,29 @@ jobs:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php: [ '8.1', '8.2' ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
ini-values: xdebug.mode=develop,debug,coverage,

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

- name: CodeSniffer
run: composer cs
- name: PHP-CS-Fixer
run: composer fix:dry

- name: PHPUnit
run: composer phpunit
- name: PHPUnit
run: composer test

0 comments on commit a3819ae

Please sign in to comment.