Skip to content

Commit a36b8e2

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

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
@@ -252,14 +252,12 @@ jobs:
252252
uses: actions/checkout@v4
253253

254254
- name: Setup ini config
255-
if: ${{ matrix.os != 'windows-latest' }}
255+
if: ${{ matrix.custom_ini == true && matrix.os != 'windows-latest' }}
256256
id: set_ini
257257
shell: bash
258258
run: |
259259
# Set the "short_open_tag" ini to make sure specific conditions are tested.
260-
if [[ ${{ matrix.custom_ini }} == true ]]; then
261-
echo 'PHP_INI=, date.timezone=Australia/Sydney, short_open_tag=On' >> "$GITHUB_OUTPUT"
262-
fi
260+
echo 'PHP_INI=, date.timezone=Australia/Sydney, short_open_tag=On' >> "$GITHUB_OUTPUT"
263261
264262
- name: Install PHP
265263
uses: shivammathur/setup-php@v2

0 commit comments

Comments
 (0)