Skip to content

Commit

Permalink
Force bash shell on all operating systems
Browse files Browse the repository at this point in the history
  • Loading branch information
firstred committed Nov 18, 2024
1 parent dac11bf commit 48ee720
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 48ee720

Please sign in to comment.