Skip to content

Commit

Permalink
GH Actions/test: minor simplification [2]
Browse files Browse the repository at this point in the history
* Improve step condition and reduce the need for bash scripting.
  • Loading branch information
jrfnl committed Mar 7, 2025
1 parent 1d086ad commit 4b00be5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -291,14 +291,12 @@ jobs:
uses: actions/checkout@v4

- name: Setup ini config
if: ${{ matrix.os != 'windows-latest' }}
if: ${{ matrix.custom_ini == true && matrix.os != 'windows-latest' }}
id: set_ini
shell: bash
run: |
# Set the "short_open_tag" ini to make sure specific conditions are tested.
if [[ ${{ matrix.custom_ini }} == true && "${{ matrix.php }}" == '7.2' ]]; then
echo 'PHP_INI=, date.timezone=Australia/Sydney, short_open_tag=On' >> "$GITHUB_OUTPUT"
fi
echo 'PHP_INI=, date.timezone=Australia/Sydney, short_open_tag=On' >> "$GITHUB_OUTPUT"
- name: Install PHP
uses: shivammathur/setup-php@v2
Expand Down

0 comments on commit 4b00be5

Please sign in to comment.