Rayrun
← Back to videos

Playwright Github Action | Playwright - part 30

Playwright Github Action - CI/CD

In this video, the YouTuber explains how to run test scripts using GitHub Actions. The video begins with an introduction to GitHub Actions and its purpose, which is similar to Jenkins in terms of continuous integration and continuous development. The YouTuber then demonstrates how to configure GitHub Actions within a repository. They show the viewers the YAML file that needs to be created within the .github/workflows folder. The YAML file consists of steps that need to be executed when there is a push or merge request on the main branch. The steps include checking out the code, setting up the node, running the test scripts, and specifying the operating system on which the scripts should be executed.

The YouTuber then proceeds to explain the playwright.config.ts file, where they specify the test files to be executed, the reporters, and other settings such as screenshot and video capture on failure. Next, they go through the process of committing and pushing the code to trigger the GitHub Actions workflow. The video shows the execution of the workflow in real-time, with each step being displayed in the GitHub Actions interface. The YouTuber points out that there were some failed tests due to differences in visual comparison, which they mention is expected.

Overall, the video provides a detailed tutorial on how to set up and run test scripts using GitHub Actions, specifically with the Playwright framework. The YouTuber showcases the entire process, from configuring the YAML file to executing the tests, and highlights the benefits and limitations of using GitHub Actions for running tests.

Related Videos

#16 - ARIA and how Playwright is making use of it to identify UI controls?
#16 - ARIA and how Playwright is making use of it to identify UI controls?
Playwright - Set timeout, parallelisation and retries directly in your test files
Playwright - Set timeout, parallelisation and retries directly in your test files
Playwright & Lighthouse Integration | Playwright Tutorial - Part 88
Playwright & Lighthouse Integration | Playwright Tutorial - Part 88
Maximize Window | Playwright Tutorial - Part 72
Maximize Window | Playwright Tutorial - Part 72
TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.