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:
parent
4eac8acefc
commit
6a9cf78fa5
2 changed files with 2 additions and 6 deletions
4
.github/workflows/playwright-example.yml
vendored
4
.github/workflows/playwright-example.yml
vendored
|
@ -25,10 +25,8 @@ jobs:
|
||||||
run: sudo apt-get install libwpewebkit-1.0-dev libgstreamer-plugins-bad1.0-0
|
run: sudo apt-get install libwpewebkit-1.0-dev libgstreamer-plugins-bad1.0-0
|
||||||
- run: node main
|
- run: node main
|
||||||
working-directory: ./playwright
|
working-directory: ./playwright
|
||||||
env:
|
|
||||||
PLAYWRIGHT_RUNNER: ${{ matrix.os }}
|
|
||||||
- if: success() || failure()
|
- if: success() || failure()
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: screenshots
|
name: ${{ matrix.os }}-screenshots
|
||||||
path: ./playwright/screenshots
|
path: ./playwright/screenshots
|
||||||
|
|
|
@ -12,9 +12,7 @@ async function main() {
|
||||||
const page = await context.newPage();
|
const page = await context.newPage();
|
||||||
await page.goto("http://whatsmyuseragent.org/");
|
await page.goto("http://whatsmyuseragent.org/");
|
||||||
await page.screenshot({
|
await page.screenshot({
|
||||||
path: `screenshots/${
|
path: `screenshots/${browserType}.png`,
|
||||||
process.env.PLAYWRIGHT_RUNNER || "example"
|
|
||||||
}-${browserType}.png`,
|
|
||||||
});
|
});
|
||||||
await browser.close();
|
await browser.close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue