-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs for triggering webapp e2e tests (#82)
* Create WEBAPP_TESTS.md * Update WEBAPP_TESTS.md * Update WEBAPP_TESTS.md * Update WEBAPP_TESTS.md * Update WEBAPP_TESTS.md * Update WEBAPP_TESTS.md * Update WEBAPP_TESTS.md
- Loading branch information
1 parent
6660403
commit 8ba168e
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
## WEBAPP TESTS | ||
|
||
We decided to run webapp (https://github.com/Kava-Labs/webapp) e2e tests on every push to main to have more confidence before deploying to public-testnet and mainnet. | ||
|
||
Webapp e2e tests help to catch bugs, especially bugs that happens only in browser environemnt: related to CORS, etc... | ||
|
||
Webapp e2e tests is triggered in this job: `Continuous Integration (Trigger Webapp E2E Tests)` https://github.com/Kava-Labs/kava-proxy-service/blob/main/.github/workflows/ci-webapp-e2e-tests.yml | ||
|
||
We use https://github.com/convictional/trigger-workflow-and-wait `github actions plugin` to facilitate triggering `webapp github actions job` from our github actions setup. | ||
|
||
Plugin requires using of `GITHUB_PERSONAL_ACCESS_TOKEN`, we used devops account for this purposes. We created `Personal access tokens (classic)` on devops account with such permissions: | ||
<img width="771" alt="image" src="https://github.com/Kava-Labs/kava-proxy-service/assets/37836031/93e7388c-3e00-4a49-8332-dbdf747c0c3b"> | ||
|
||
Token name: `trigger-workflow-and-wait-token` | ||
|
||
## Job execution order | ||
|
||
`Continuous Integration (Main Branch)` -> `Continuous Deployment (Internal Testnet)` -> `Continuous Integration (Trigger Webapp E2E Tests)` | ||
|
||
In another words: | ||
|
||
`Backend Tests` -> `Deploy to Internal Testnet` -> `Trigger Webapp E2E Tests` | ||
|
||
`NOTE`: webapp tests are running against Internal Testnet so we have to redeploy it, before running tests. | ||
|
||
## Accessing Dev Ops Account | ||
|
||
Email: [email protected] | ||
|
||
Credentials can be found in 1Password, look for: `Credentials for Github DevOps/Service Account` |