Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ jobs:
fail-fast: false

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@v2.0.1
uses: pnpm/action-setup@v4
with:
version: 6.23.5
version: 9

- name: Set node version to ${{ matrix.node_version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
cache: "pnpm"
Expand All @@ -45,6 +45,3 @@ jobs:
run: |
cd test/basic
pnpm run test:ci

- name: Lint
run: pnpm run lint --if-present
1 change: 0 additions & 1 deletion test/basic/map.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ describe("build", async () => {

const indexHTML = getFileFromOutput(output, "index.html");
const indexJS = getFileFromOutput(output, "index.js");
const content = await loadURLAndParseContent(buildPath);

expect(output).toBeDefined();
expect(indexHTML).toBeDefined();
Expand Down
5 changes: 4 additions & 1 deletion test/basic/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export const loadURLAndParseContent = async (
preview: { port, open: false },
});

const browser = puppeteer.launch();
const browser = puppeteer.launch({
headless: true,
args: ['--no-sandbox', '--disable-setuid-sandbox'],
});
const page = await (await browser).newPage();
await page.goto(`http://localhost:${port}`);
await page.waitForNetworkIdle();
Expand Down