Skip to content

Commit

Permalink
?
Browse files Browse the repository at this point in the history
  • Loading branch information
Menci committed Dec 19, 2024
1 parent 8b040cd commit a3a5506
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,15 @@ jobs:
runs-on: ubuntu-latest
name: NPM Publish
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Publish
uses: JS-DevTools/npm-publish@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: windows-latest
strategy:
matrix:
node: ["20"]
Expand Down
3 changes: 2 additions & 1 deletion e2e/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ async function createBrowser(modernBrowser: boolean) {
return modernBrowser
? await chromium.launch()
: await firefox.launch({
headless: false,
firefoxUserPrefs: {
// Simulate a legacy browser with ES modules support disabled
"dom.moduleScripts.enabled": false
Expand Down Expand Up @@ -210,7 +211,7 @@ const runTestWithRetry = async (...args: Parameters<typeof runTest>) => {
};

export function runTests(viteVersion: number, importVitePackages: () => Promise<VitePackages>) {
jest.setTimeout(60000);
jest.setTimeout(600000);

describe(`E2E test for Vite ${viteVersion}`, () => {
const nodeVersion = Number(process.versions.node.split(".")[0]);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"build": "tsc",
"test": "cross-env NODE_NO_WARNINGS=1 NODE_OPTIONS=--experimental-vm-modules jest --verbose --coverage --forceExit",
"format": "prettier --write '**/*.{mjs,cjs,js,mts,cts,ts}'",
"pretest": "yarn --cwd e2e && playwright install firefox"
"pretest": "yarn --cwd e2e && playwright install firefox && playwright install chromium"
},
"packageManager": "[email protected]",
"devDependencies": {
Expand Down

0 comments on commit a3a5506

Please sign in to comment.