Skip to content

Commit

Permalink
Improve github actions commands
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Jul 19, 2021
1 parent 7c0210a commit 05108b6
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
- php: '8.1'
flags: "--ignore-platform-req=php"
stability: prefer-stable
composer-flags: [ '' ]
phpunit-flags: [ '--coverage-text' ]
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -32,8 +30,18 @@ jobs:
- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress ${{ matrix.flags }}

- run: composer phpunit
- run: composer phpstan
- name: Run Unit tests with coverage
run: composer phpunit
if: ${{ matrix.php != '8.1' }}

- name: Run Unit tests without coverage
run: vendor/bin/phpunit --no-coverage -vvv
if: ${{ matrix.php == '8.1' }}

- name: Run static analysis
run: composer phpstan
if: ${{ matrix.php == '8.0' }}
- run: composer phpcs

- name: Run Coding style rules
run: composer phpcs
if: ${{ matrix.php == '8.0' }}

0 comments on commit 05108b6

Please sign in to comment.