1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-30 22:08:02 +00:00

env PLAYWRIGHT_RUNNER is not using

This commit is contained in:
Nebel 2020-07-27 20:56:41 +09:00
parent 4eac8acefc
commit 6a9cf78fa5
2 changed files with 2 additions and 6 deletions

View file

@ -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

View file

@ -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();
}