Skip to content

Commit

Permalink
Fix missing PHP version
Browse files Browse the repository at this point in the history
  • Loading branch information
carine-bonnafous committed Nov 19, 2024
1 parent c1b4b49 commit 3262b25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
env:
REPORT_PORTAL_API_KEY: ${{ secrets.REPORT_PORTAL_API_KEY }}
REPORT_PORTAL_ENDPOINT: ${{ vars.REPORT_PORTAL_ENDPOINT }}
PHP_VERSION: ${{ matrix.php }}

- name: PHPUnit
run: |
Expand Down
6 changes: 2 additions & 4 deletions tests/reportportal_conf.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#!/usr/bin/env bash

export REPORT_PORTAL_API_KEY=$REPORT_PORTAL_API_KEY
export REPORT_PORTAL_HOST=${REPORT_PORTAL_ENDPOINT/\/api\/v1/}

REPORT_PORTAL_HOST=${REPORT_PORTAL_ENDPOINT/\/api\/v1/}
envsubst < tests/reportportal_phpunit_conf_template.xml > tests/reportportal_phpunit_conf.xml

# Add conf for ReportPortal extension in phpunit.ci.xml
# Insert content of file tests/reportportal_phpunit_conf.xml before </phpunit> end tag in phpunit.ci.xml
sed -i $'/<\/phpunit>/{e cat tests/reportportal_phpunit_conf.xml\n}' phpunit.ci.xml

composer config minimum-stability dev
composer require --dev reportportal/phpunit
composer require --dev reportportal/phpunit

0 comments on commit 3262b25

Please sign in to comment.