### CI Testing - [x] Create a remote "testing" branch. - [x] Only "testing" branch can be merged into main - [x] GitHub Actions Workflow - branch-check file - [x] Branch Protection Rules ### Triggers - [x] Trigger: commit - [x] Action: lint - [x] Trigger: push - [x] Action: lint, build, local tests - [ ] Trigger: pull request to testing - [ ] Action: lint, build, - [ ] [deploy to testing env](https://www.npmjs.com/package/gh-pages#:~:text=Deploying%20with%20GitHub%20Actions%20and%20a%20named%20script) - [ ] Run tests using the testing env. Maybe use [reusable workflow](https://docs.github.com/en/actions/sharing-automations/reusing-workflows#creating-a-reusable-workflow) ### 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. - [Github actions CI](https://docs.github.com/en/actions/about-github-actions/about-continuous-integration-with-github-actions) - [Playwright CI](https://playwright.dev/docs/ci) ### 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
CI Testing
Triggers
To Mock or Not
CI Testing
Need to solve testing Playwright out of localhost env.
Testing env