Skip to content

Commit

Permalink
GH Actions minor workflow update
Browse files Browse the repository at this point in the history
  • Loading branch information
dakujem committed Aug 31, 2022
1 parent fd8c5f8 commit 524deff
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/php-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
# extensions: json
# ini-values: "post_max_size=256M" #optional
coverage: pcov

- name: Validate composer.json and composer.lock
Expand All @@ -44,13 +46,14 @@ jobs:
restore-keys: ${{ runner.os }}-php-

- name: Update composer dependencies
run: composer update -o --no-interaction --no-progress ${{ matrix.composer-flags }}
run: composer update -o --no-interaction --no-progress --prefer-dist ${{ matrix.composer-flags }}

- name: Run TEST suite
run: vendor/bin/tester tests -C --coverage tests/output/coverage.xml --coverage-src=src
run: composer run-script test:ci -- -C --coverage tests/output/coverage.xml --coverage-src=src
#run: vendor/bin/tester tests -C --coverage tests/output/coverage.xml --coverage-src=src

- name: Install php-coveralls
run: composer global require -o --no-interaction --no-progress php-coveralls/php-coveralls
run: composer global require -o --no-interaction --no-progress --prefer-dist php-coveralls/php-coveralls

- name: Upload coverage results to Coveralls
uses: nick-invision/retry@v2
Expand Down

0 comments on commit 524deff

Please sign in to comment.