Skip to content

Commit 3aeba35

Browse files
committed
use macos for test
1 parent 8b4505c commit 3aeba35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
pull_request:
77
jobs:
88
test:
9-
runs-on: ubuntu-latest
9+
runs-on: macos-latest
1010
steps:
1111
- name: Checkout 🍔🍟🥤
1212
uses: actions/checkout@v4

test/puppeteer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ async function test(port) {
8585
if (screenshot) {
8686
const dir = 'screenshots';
8787
fs.mkdirSync(dir, { recursive: true });
88-
const name = /\/([a-z0-9_-]+).html/.exec(url);
88+
const name = /\/([a-z0-9_-]+).html/.exec(url)[1];
8989
const path = `${dir}/${name}.png`;
9090
await page.screenshot({path});
9191
}

0 commit comments

Comments
 (0)