Skip to content

Commit

Permalink
move test endpoint into phpunit config
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Dec 21, 2024
1 parent 8b2ab16 commit 07af562
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 10 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,6 @@ jobs:
phpunit-version: '11.1'
- php-version: '8.3'
phpunit-version: '11.1'
- fhir-version: 'DSTU2'
test-endpoint: 'https://hapi.fhir.org/baseDstu2'
- fhir-version: 'STU3'
test-endpoint: 'https://server.fire.ly/r3'
- fhir-version: 'R4'
test-endpoint: 'https://server.fire.ly/r4'
- fhir-version: 'R5'
test-endpoint: 'https://server.fire.ly/r5'

name: '${{ matrix.fhir-version }} - PHP ${{ matrix.php-version }} - PHPUnit ${{ matrix.phpunit-version }}'
steps:
Expand Down Expand Up @@ -152,8 +144,6 @@ jobs:
# java-version: 18

- name: 'Run tests'
env:
PHPFHIR_TEST_INTEGRATION_ENDPOINT: '${{ matrix.test-endpoint }}'
# language=sh
run: |
./vendor/bin/phpunit -c 'phpunit/${{ matrix.fhir-version }}.xml'
1 change: 1 addition & 0 deletions phpunit/DSTU2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="../vendor/autoload.php" colors="true" stopOnFailure="false">
<php>
<ini name="memory_limit" value="2048M"/>
<env name="PHPFHIR_TEST_INTEGRATION_ENDPOINT" value="https://hapi.fhir.org/baseDstu2" force="true" />
</php>
<testsuites>
<testsuite name="DSTU2">
Expand Down
1 change: 1 addition & 0 deletions phpunit/R4.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="../vendor/autoload.php" colors="true" stopOnFailure="false">
<php>
<ini name="memory_limit" value="2048M"/>
<env name="PHPFHIR_TEST_INTEGRATION_ENDPOINT" value="https://server.fire.ly/r4" force="true" />
</php>
<testsuites>
<testsuite name="R4">
Expand Down
1 change: 1 addition & 0 deletions phpunit/R5.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="../vendor/autoload.php" colors="true" stopOnFailure="false">
<php>
<ini name="memory_limit" value="2048M"/>
<env name="PHPFHIR_TEST_INTEGRATION_ENDPOINT" value="https://server.fire.ly/r5" force="true" />
</php>
<testsuites>
<testsuite name="R5">
Expand Down
1 change: 1 addition & 0 deletions phpunit/STU3.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="../vendor/autoload.php" colors="true" stopOnFailure="false">
<php>
<ini name="memory_limit" value="2048M"/>
<env name="PHPFHIR_TEST_INTEGRATION_ENDPOINT" value="https://server.fire.ly/r3" force="true" />
</php>
<testsuites>
<testsuite name="STU3">
Expand Down

0 comments on commit 07af562

Please sign in to comment.