# Publishing Playwright HTML reports on GitLab Pages

DevFeed: [Publishing Playwright HTML reports on GitLab Pages](<https://devfeed.tech/articles/publishing-playwright-html-reports-on-gitlab-pages-22422.md>)

Original publisher: [Read original article](<https://www.tjmaher.com/2026/08/publishing-playwright-html-reports-on.html>)

Author: T.J. Maher (noreply@blogger.com)

Published: 2026-08-29T23:56:10Z

Content type: tutorial

Language: en

Sources: [T.J. Maher](<https://devfeed.tech/sources/t-j-maher.md>)

Topics: [gitlab-ci](<https://devfeed.tech/topics/gitlab-ci.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [GitLab](<https://devfeed.tech/topics/gitlab.md>), [Playwright](<https://devfeed.tech/topics/playwright.md>), [Bun](<https://devfeed.tech/topics/bun.md>), [GitHub Pages](<https://devfeed.tech/topics/github-pages.md>)

Tags: [built-in](<https://devfeed.tech/tags/built-in.md>), [bun](<https://devfeed.tech/tags/bun.md>), [bun-create-playwright](<https://devfeed.tech/tags/bun-create-playwright.md>), [ci](<https://devfeed.tech/tags/ci.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [ci-cd-pipeline](<https://devfeed.tech/tags/ci-cd-pipeline.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [code](<https://devfeed.tech/tags/code.md>), [deploy](<https://devfeed.tech/tags/deploy.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [github-pages](<https://devfeed.tech/tags/github-pages.md>), [gitlab](<https://devfeed.tech/tags/gitlab.md>), [gitlab-ci](<https://devfeed.tech/tags/gitlab-ci.md>), [html](<https://devfeed.tech/tags/html.md>), [landing-pages](<https://devfeed.tech/tags/landing-pages.md>), [linting](<https://devfeed.tech/tags/linting.md>), [pages](<https://devfeed.tech/tags/pages.md>), [playwright](<https://devfeed.tech/tags/playwright.md>), [publishing](<https://devfeed.tech/tags/publishing.md>), [reports](<https://devfeed.tech/tags/reports.md>)

## AI overview

The post adds a Deploy stage to a GitLab CI/CD pipeline for a Playwright project so its generated HTML report can be viewed online. The existing pipeline checks formatting, linting and types, runs smoke and regression tests, and archives the report with screenshots and failure videos. GitLab Pages publishes a static site from a repository; by default it deploys files from a `public` folder, though a custom folder can be used. Deployment is configured in `.gitlab-ci.yml` with a job marked `pages: true`. Projects may be public, internal or private, and Pages can use a `*.gitlab.io` domain or a custom domain. The excerpt says Pages appears enabled by default for new projects and suggests checking its toggle under Settings > General > Visibility, project features, permissions. It does not include the actual report deployment configuration.

## Source excerpt

We've added a lot to our demo project, bun--create-playwright. We've explored setting up a Playwright framework using bun, a new package manager bundled into Claude Code. We've added typechecking, and formatting and linting. We've set up a CI/ CD pipeline for our tests using GitLab, one with three stages: Quality: We check that the formatting, linting and typechecking is correct for any changes we attempt to push to the code base. Test: We run the smoke and then the regression tests to make sure that everything still works. Report: We bundle an archive of the Playwright generated HTML report, with screenshots and videos if things fail. For this post, we will add a new stage to this GitLab pipeline: Deploy: Where we will deploy the HTML report to GitLab Pages, so we can view it online. What is GitLab Pages? GitLab Pages is a built-in feature of GitLab that allows you to publish static websites directly from a repository in GitLab. Similar to GitHub Pages, it is commonly used to host project documentation, personal blogs, portfolios, or corporate landing pages for free. From the GitLab Docs / Pages: "To use GitLab Pages, you must create a project in GitLab to upload your website's files to. These projects can be either public, internal, or private. "By default, GitLab deploys your website from a specific folder called public in your repository. You can also set a custom folder to be deployed with Pages. When you create a new project in GitLab, a repository becomes available automatically. "To deploy your site, GitLab uses its built-in tool called GitLab CI/CD to build your site and publish it to the GitLab Pages server. The sequence of scripts that GitLab CI/CD runs to accomplish this task is created from a file named .gitlab-ci.yml, which you can create and modify. A user-defined job with pages: true property in the configuration file makes GitLab aware that you're deploying a GitLab Pages website. "You can either use the GitLab default domain for GitLab Pages websit