<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Brian Hogg</title>
    <description>The latest articles on DEV Community by Brian Hogg (@hoggworks).</description>
    <link>https://dev.to/hoggworks</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F68475%2F1be80708-c040-4094-86e1-3002603747f1.jpeg</url>
      <title>DEV Community: Brian Hogg</title>
      <link>https://dev.to/hoggworks</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hoggworks"/>
    <language>en</language>
    <item>
      <title>Playwright Github Actions question</title>
      <dc:creator>Brian Hogg</dc:creator>
      <pubDate>Fri, 25 Feb 2022 19:33:34 +0000</pubDate>
      <link>https://dev.to/hoggworks/playwright-github-actions-question-2df3</link>
      <guid>https://dev.to/hoggworks/playwright-github-actions-question-2df3</guid>
      <description>&lt;p&gt;Hey all! I'm trying to integrate Playwright into my CI pipeline with a NextJS app, Github and Vercel as the host. I've got Playwright (the first time I'm using it) loaded and running a couple sample tests, and it comes with a boilerplate workflow playwright.yml file like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;name: Playwright Tests
on:
  push:
    branches: [main, master]
  pull_request:
    branches: [main, master]
jobs:
  test:
    timeout-minutes: 60
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
        with:
          node-version: "14.x"
      - name: Install dependencies
        run: npm ci
      - name: Install Playwright
        run: npx playwright install --with-deps
      - name: Run Jest
        run: npm run test
      - name: Run Playwright tests
        run: npx playwright test
      - uses: actions/upload-artifact@v2
        if: always()
        with:
          name: playwright-report
          path: playwright-report/
          retention-days: 30

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This works fine locally since I have my dev server running, but how can I test this as part of the Github Action? I assume I'm missing something very simple that will run the server to let me actually test it, but can anyone point me in the right direction? &lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&lt;br&gt;
I hadn't realized you needed to separately enable the webServer block in the playwright.config.ts file. In my case, using Next, I had to set it to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;webServer: {
  command: "npm run build &amp;amp;&amp;amp; npm run start",
  port: 3000,
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
  </channel>
</rss>
