Skip to content

Commit

Permalink
update github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklog committed Oct 26, 2024
1 parent e65dd11 commit faa9385
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ indent_size = 4
[*.md]
trim_trailing_whitespace = false
insert_final_newline = false

[*.{yaml,yml}]
indent_size = 2
34 changes: 24 additions & 10 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: PHP Composer
on:
push:
branches:
- master
- 'releases/**'
- 'feature/**'
- master
- 'releases/**'
- 'feature/**'
pull_request:
branches:
- master
Expand All @@ -19,17 +19,31 @@ jobs:
php-versions: [ '8.2', '8.3', '8.4' ]

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

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
php-version: ${{ matrix.php-versions }}

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

- name: Install Composer dependencies
uses: ramsey/composer-install@v3
with:
dependency-versions: ${{ matrix.php-versions }}
composer-options: --prefer-dist --no-scripts

- run: composer install --prefer-dist --no-progress --no-suggest
- run: composer validate
- run: composer crc
- run: composer unuse
- run: composer cs-check
- run: composer phpstan
- run: composer phpunit

- name: CS Check
run: composer cs-check

- name: PHPStan
run: composer phpstan

- name: PHPUnit
run: composer phpunit

0 comments on commit faa9385

Please sign in to comment.