Skip to content

Commit

Permalink
Set APP_ENV to testing when running tests (#108)
Browse files Browse the repository at this point in the history

Co-authored-by: 李铭昕 <[email protected]>
  • Loading branch information
BadJacky and limingxinleo authored Dec 4, 2023
1 parent 8147f06 commit 6a550f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
image: $REGISTRY_URL/$PROJECT_NAME:test
environment:
- "APP_PROJECT=hyperf"
- "APP_ENV=test"
- "APP_ENV=testing"
ports:
- "9501:9501"
deploy:
Expand Down
3 changes: 3 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@
<directory suffix=".php">./app</directory>
</whitelist>
</filter>
<php>
<env name="APP_ENV" value="testing" force="true"/>
</php>
</phpunit>

0 comments on commit 6a550f5

Please sign in to comment.