Integrate and run Playwright tests with Github Actions
Now a days most of the companies follow CICD - Continuous delivery, Continuous Integration approach to deliver their product timely. For Continuous integration Playwright supports many tools like Github Actions, Circle CI, Docker, Jenkins, Gitlab CI etc. Now a days most of the companies use Github Actions to run their automation with continuous integration. So whenever developer push the new code, it runs automation tests on that and make sure nothing breaks.
I have created a below YouTube playwright tutorial video in the "software testing tips and tricks" channel where I have explained -
- Which tools are supported by playwright?
- Create new Github Repo and integrate with the Playwright
- Setup Github desktop with playwright
- Configure and understand the Playwright.yml file
- Run tests on github actions and check reports of playwright tab
- how to schedule playwright test for daily run in github actions?
Here is the official Playwright document for Integrating playwright actions with github .
So to enable Git automatically with Playwright, while installing the playwright it asks if user wants to enable Git, that time need to select true and it will install playwright with git. It will also automatically create Playwright.yml file which we can modify according to the need. One can configure when to run it, where to put results and all which I already explained in the video.
All Playwright Tutorial Posts -
- Setup NodeJS playwright and run the first script
- Learn basic automation with Playwright - with code
- Expect and Auto-waits in Playwright
- How to debug the playwright script?
- How to compare screenshots using Playwright?
- Best Practices with Playwright automation
- Playwright Tutorial - Handle Multiple Tabs with Playwright
- automate downloads using Playwright?
- Automate file upload using Playwright
- Different types of waits in the Playwright
- Automate REST APIs using Playwright and Typescript - explained with live coding
- Page Object Model with Playwright and Typescript
- Tags and Annotations in Playwright
- Different built-in Reporters in Playwright - Tips and Tricks
If you have any doubts or suggestions feel free to reach out on social media. Follow Us on Reddit, Facebook, and Twitter. Don't forget to subscribe to the channel -> Youtube channel. Thank You
No comments