-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force bash shell on all operating systems
- Loading branch information
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,13 +21,13 @@ jobs: | |
tools: php-cs-fixer | ||
|
||
- name: Setup problem matchers for PHPUnit | ||
shell: bash | ||
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | ||
|
||
- name: Get composer cache directory | ||
uses: mathiasvr/[email protected] | ||
id: composer-cache | ||
with: | ||
run: composer config cache-files-dir | ||
shell: bash | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: Cache composer dependencies | ||
uses: actions/cache@v4 | ||
|
@@ -37,18 +37,21 @@ jobs: | |
restore-keys: ${{ runner.os }}-${{ matrix.php-versions }}-composer- | ||
|
||
- name: Install Composer dependencies | ||
shell: bash | ||
run: composer install --no-progress --prefer-dist --optimize-autoloader | ||
|
||
- name: Test with PHPUnit | ||
if: matrix.php-versions != '8.3' || matrix.operating-system != 'ubuntu-latest' | ||
env: | ||
XDEBUG_MODE: coverage | ||
shell: bash | ||
run: vendor/bin/phpunit --testdox -- tests | ||
|
||
- name: Test with PHPUnit (coverage) | ||
if: matrix.php-versions == '8.3' && matrix.operating-system == 'ubuntu-latest' | ||
env: | ||
XDEBUG_MODE: coverage | ||
shell: bash | ||
run: vendor/bin/phpunit --testdox --coverage-clover coverage.xml -- tests | ||
|
||
- name: Codecov | ||
|