Skip to content

Commit

Permalink
use macos for test
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jul 2, 2024
1 parent 04cf155 commit 2e2fdb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Checkout 🍔🍟🥤
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion test/puppeteer.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async function test(port) {
if (screenshot) {
const dir = 'screenshots';
fs.mkdirSync(dir, { recursive: true });
const name = /\/([a-z0-9_-]+).html/.exec(url);
const name = /\/([a-z0-9_-]+).html/.exec(url)[1];
const path = `${dir}/${name}.png`;
await page.screenshot({path});
}
Expand Down

0 comments on commit 2e2fdb8

Please sign in to comment.