Skip to content

Commit 97232ba

Browse files
committed
Set env var for php tests
1 parent 89dd6d0 commit 97232ba

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,20 @@ jobs:
8888
CACHE_DIR: 'C:\Downloads'
8989
TOOLS_DIR: 'C:\tools'
9090

91-
- name: Run Tests for Zephir Parser
91+
- name: Setup Tests
9292
shell: bash
9393
run: |
94-
php --ri zephir_parser
9594
if [ "${{ runner.os }}" = "Windows" ]; then
96-
TEST_PHP_EXECUTABLE=C:\tools\php\php.exe php run-tests.php -q
95+
echo "TEST_PHP_EXECUTABLE=C:\tools\php\php.exe" >> $GITHUB_ENV
9796
else
98-
TEST_PHP_EXECUTABLE=$(which php) php run-tests.php -q
97+
echo "TEST_PHP_EXECUTABLE=$(which php)" >> $GITHUB_ENV
9998
fi
99+
100+
- name: Run Tests for Zephir Parser
101+
shell: bash
102+
run: |
103+
php --ri zephir_parser
104+
php run-tests.php -q
100105
env:
101106
NO_INTERACTION: 1
102107
REPORT_EXIT_STATUS: 1

0 commit comments

Comments
 (0)