coindrop icon indicating copy to clipboard operation
coindrop copied to clipboard

Cypress tests have data conflicts when multiple CI runs are happening simultaneously

Open remjx opened this issue 5 years ago • 0 comments

in CI, there can be conflicts when multiple PRs are running Cypress Github Actions at the same time because they are using the same Firebase dev environment and the same Coindrop IDs for each test.

One workaround is to use Github action meta data (e.g. commit hash) from actions/checkout-v2 to set an ENV var, and include the ENV var in the test Coindrop ID. Potentially use https://github.com/FranzDiebold/github-env-vars-action or https://github.com/rlespinasse/github-slug-action

Notes

  • Use after / afterAll hook to clean up the created coindrops

remjx avatar Dec 05 '20 21:12 remjx