Skip to content

Commit 5a0aad3

Browse files
committed
ci: dynamically inject the API key into phpunit.xml
1 parent 5e55b1a commit 5a0aad3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/run-tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ jobs:
3737
coverage: none
3838

3939
- name: Install Dependencies (${{ matrix.stability }})
40-
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
40+
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4141

4242
- name: Configure PHPUnit
4343
run: |
4444
cp phpunit.xml.dist phpunit.xml
45-
sed -i 's|<!-- <php>.*</php> -->|<php><env name="GROK_API_KEY" value="${{ secrets.GROK_API_KEY }}" /></php>|g' phpunit.xml
45+
sed -i 's|<env name="GROK_API_KEY" value=""/>|<env name="GROK_API_KEY" value="${{ secrets.GROK_API_KEY }}"/>|g' phpunit.xml
4646
4747
- name: List Installed Dependencies
4848
run: composer show -D

0 commit comments

Comments
 (0)