Skip to content

Commit 4b00be5

Browse files
committed
GH Actions/test: minor simplification [2]
* Improve step condition and reduce the need for bash scripting.
1 parent 1d086ad commit 4b00be5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,14 +291,12 @@ jobs:
291291
uses: actions/checkout@v4
292292

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

0 commit comments

Comments
 (0)