diff --git a/.github/workflows/playwright-example.yml b/.github/workflows/playwright-example.yml index fa62f24..d3e9338 100644 --- a/.github/workflows/playwright-example.yml +++ b/.github/workflows/playwright-example.yml @@ -25,10 +25,8 @@ jobs: run: sudo apt-get install libwpewebkit-1.0-dev libgstreamer-plugins-bad1.0-0 - run: node main working-directory: ./playwright - env: - PLAYWRIGHT_RUNNER: ${{ matrix.os }} - if: success() || failure() uses: actions/upload-artifact@v2 with: - name: screenshots + name: ${{ matrix.os }}-screenshots path: ./playwright/screenshots diff --git a/playwright/main.js b/playwright/main.js index 63599c2..e94f439 100644 --- a/playwright/main.js +++ b/playwright/main.js @@ -12,9 +12,7 @@ async function main() { const page = await context.newPage(); await page.goto("http://whatsmyuseragent.org/"); await page.screenshot({ - path: `screenshots/${ - process.env.PLAYWRIGHT_RUNNER || "example" - }-${browserType}.png`, + path: `screenshots/${browserType}.png`, }); await browser.close(); }