Skip to content

Commit 89561c4

Browse files
authored
Merge pull request #100 from Kit/support-multiple-env-files
Tests: Support multiple `.env` files
2 parents 47e3723 + 412e6ef commit 89561c4

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/tests.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,12 @@ jobs:
121121
echo "CONVERTKIT_OAUTH_ACCESS_TOKEN_NO_DATA=$access_token" >> $GITHUB_ENV
122122
echo "CONVERTKIT_OAUTH_REFRESH_TOKEN_NO_DATA=$refresh_token" >> $GITHUB_ENV
123123
124-
# Write any secrets, such as API keys, to the .env.dist.testing file now.
125-
# Make sure your committed .env.dist.testing file ends with a newline.
126-
# The formatting of the contents to include a blank newline is deliberate.
127-
- name: Define GitHub Secrets in .env.dist.testing
124+
# Write any secrets, such as API keys, to the .env.testing file now.
125+
- name: Define GitHub Secrets in .env.testing
128126
uses: DamianReeves/write-file-action@v1.3
129127
with:
130-
path: ${{ env.PLUGIN_DIR }}/.env.dist.testing
128+
path: ${{ env.PLUGIN_DIR }}/.env.testing
131129
contents: |
132-
133130
CONVERTKIT_API_KEY=${{ env.CONVERTKIT_API_KEY }}
134131
CONVERTKIT_API_SECRET=${{ env.CONVERTKIT_API_SECRET }}
135132
CONVERTKIT_OAUTH_ACCESS_TOKEN=${{ env.CONVERTKIT_OAUTH_ACCESS_TOKEN }}
@@ -140,6 +137,7 @@ jobs:
140137
CONVERTKIT_OAUTH_REDIRECT_URI=${{ env.CONVERTKIT_OAUTH_REDIRECT_URI }}
141138
CONVERTKIT_API_SIGNED_SUBSCRIBER_ID=${{ env.CONVERTKIT_API_SIGNED_SUBSCRIBER_ID }}
142139
CONVERTKIT_API_SUBSCRIBER_TOKEN=${{ env.CONVERTKIT_API_SUBSCRIBER_TOKEN }}
140+
143141
write-mode: append
144142

145143
# Installs wp-browser, Codeception, PHP CodeSniffer and anything else needed to run tests.

codeception.dist.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ extensions:
2424
- lucatume\WPBrowser\Command\DevRestart
2525
- lucatume\WPBrowser\Command\ChromedriverUpdate
2626
params:
27-
- .env.dist.testing
27+
- .env.dist.testing
28+
- .env.testing

0 commit comments

Comments
 (0)