-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
CI Testing
- Create a remote "testing" branch.
- Only "testing" branch can be merged into main
- GitHub Actions Workflow - branch-check file
- Branch Protection Rules
Triggers
- Trigger: commit
- Action: lint
- Trigger: push
- Action: lint, build, local tests
- Trigger: pull request to testing
- Action: lint, build,
- deploy to testing env
- Run tests using the testing env. Maybe use reusable workflow
- Action: lint, build,
To Mock or Not
- What if the tests require server updates? How to synchronize?
- What if I don't control the server?
- Possible solution - mock
- Possibly the best solution regarding time constraints. If I mock, i won't need much of the workflow.
CI Testing
Need to solve testing Playwright out of localhost env.
Testing env
- Problem - github action "Test on PR" prevents merging branches.
- Cause - localhost is not run at the Github action
- Solution:
- Add a testing env (domain)
- Push to testing env/branch (without testing)
- Perform the automatic tests on the testing env/domain
- If success, merge to prod
Reactions are currently unavailable
Metadata
Metadata
Assignees
Projects
Status
In Progress