GithubHelp home page GithubHelp logo

b7wch / playwright-github-actions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arjunattam/playwright-github-actions

0.0 1.0 0.0 923 KB

Run Playwright scripts on GitHub Actions

JavaScript 32.97% Dockerfile 67.03%

playwright-github-actions's Introduction

Playwright on GitHub Actions

This repo has been archived: Please look at microsoft/playwright-github-action instead.

Example project that runs Playwright tests on GitHub Actions. Tested with Playwright v0.12.1.

Usage

Specify jobs.job_id.container as shown below. This container image contains system dependencies to run Chromium, Firefox and WebKit. See Dockerfile to review.

jobs:
  e2e_test_job:
    runs-on: ubuntu-latest

    container: arjun27/playwright-bionic:0.2.0

    name: Try playwright
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v1
      - run: npm install && npm test

Browsers

The container installs system dependencies for the 3 browsers and relies on Playwright to install browsers during npm install.

To use the browsers in your tests, please use the following configuration:

  • Chromium: Use the --no-sandbox arg while launching it
  • WebKit and Firefox: No additional config

Contributing

Let us know if this example works for your requirements. File an issue!

Potential improvements

Currently, this action is built as a job.job_id.container, which works for cases where UI tests are a separate job. It would be worth exploring to make it work as an action inside a job (job.job_id.uses).

playwright-github-actions's People

Contributors

arjunattam avatar ccpu avatar tkrotoff avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.