You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Precedence Order for environment variables in Docker Compose
80
81
81
82
When using Docker Compose, environment variables can be set in various ways. The precedence order for these variables is as follows:
@@ -87,7 +88,7 @@ When using Docker Compose, environment variables can be set in various ways. The
87
88
|4 | Hardcoded in docker-compose.yml | MY_SECRET_TOKEN: fallback_value |
88
89
89
90
## Run EZID tests using GitHub action
90
-
A GitHub action `Run EZID UI and functional tests in Docker` is defined in the `.github/workflow/ezid-tests.yml` file. The action is triggered by content changes to the `.env` file. It runs the `docker compose up --build` command to build the images, start the containers and then run the tests defined in the test scripts.
91
+
A GitHub action `Run EZID UI and functional tests in Docker` is defined in the `.github/workflow/ezid-tests.yml` file. The action is triggered by content changes to the `.env` file. It runs the `docker compose up --build` command to build the images, start the containers and then run the test suites.
91
92
92
93
Sample `.github/workflow/ezid-tests.yml`:
93
94
```
@@ -164,3 +165,7 @@ Pass the API password in command line:
164
165
```
165
166
APITEST_PASSWORD=xxx docker compose up --build
166
167
```
168
+
169
+
4. To run the script through GitHub action
170
+
171
+
Update the `.env` file then push the changes to GitHub. This will trigger a GitHub action to run the tests.
0 commit comments