Skip to content

Commit

Permalink
chore: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreyu committed Feb 11, 2024
1 parent 89173ce commit 94ed014
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 18 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Code Quality

on:
- push
- pull_request

jobs:
php-cs-fixer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: php-actions/composer@v6
- name: php-cs-fixer
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff

phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: php-actions/composer@v6
- uses: php-actions/phpstan@v3
33 changes: 15 additions & 18 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
name: Testing

on: [push]
on:
- push
- pull_request

jobs:
build-test:
phpunit:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: php-actions/composer@v6
with:
php_extensions: dom fileinfo filter libxml xmlreader zip gd
- uses: docker://oskarstark/php-cs-fixer-ga
with:
args: --dry-run
- uses: php-actions/phpstan@v3
- uses: php-actions/phpunit@v3
with:
version: 10.5.8
php_extensions: xdebug dom fileinfo filter libxml xmlreader zip gd
args: --coverage-text
env:
XDEBUG_MODE: coverage
- uses: actions/checkout@v3
- uses: php-actions/composer@v6
with:
php_extensions: dom fileinfo filter libxml xmlreader zip gd
- uses: php-actions/phpunit@v3
with:
version: 10.5.8
php_extensions: xdebug dom fileinfo filter libxml xmlreader zip gd
args: --coverage-text
env:
XDEBUG_MODE: coverage

0 comments on commit 94ed014

Please sign in to comment.