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
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,15 @@ jobs:
- name: Run Tests
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
xvfb-run pnpm run ci
xvfb-run pnpm run ci
else
pnpm run ci
pnpm run ci
fi
shell: bash
- name: Run MacOS specific tests
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
pnpm run test:integration:mac-universal
fi
shell: bash
- name: 🐛 Debug Build
Expand Down
3 changes: 3 additions & 0 deletions example-electron-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"build": "pnpm build:bundle && pnpm build:package",
"build:bundle": "tsc && rollup -c rollup.config.js",
"build:package": "cp ./src/index.html ./dist && electron-builder -p never",
"build:package:mac-universal": "cp ./src/index.html ./dist && electron-builder -p never -m --universal",
"build:mac-universal": "pnpm build:bundle && pnpm build:package:mac-universal",
"ci": "pnpm i && pnpm build && pnpm test",
"ci:mac-universal": "pnpm i && pnpm build:mac-universal && pnpm test",
"clean": "pnpm clean:dist && rm -rf ./node_modules pnpm-lock.yaml ./wdio-logs",
"clean:dist": "pnpx rimraf ./dist && mkdir -p ./dist",
"test": "wdio run ./wdio.conf.ts && pnpm test:multiremote && pnpm test:standalone",
Expand Down
3 changes: 3 additions & 0 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"build": "pnpm build:bundle && pnpm build:package",
"build:bundle": "tsc && rollup -c rollup.config.js",
"build:package": "cp ./src/index.html ./dist && electron-forge package",
"build:package:mac-universal": "cp ./src/index.html ./dist && electron-forge package --platform=darwin --arch=universal",
"build:mac-universal": "pnpm build:bundle && pnpm build:package:mac-universal",
"ci": "pnpm i && pnpm build && pnpm test",
"ci:mac-universal": "pnpm i && pnpm build:mac-universal && pnpm test",
"clean": "pnpm clean:dist && rm -rf ./node_modules pnpm-lock.yaml ./wdio-logs ./out",
"clean:dist": "pnpx rimraf ./dist && mkdir -p ./dist",
"test": "wdio run ./wdio.conf.ts && pnpm test:multiremote && pnpm test:standalone",
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"test:integration:cjs": "cd example-cjs && pnpm run ci",
"test:integration:esm": "cd example && pnpm run ci",
"test:integration:electron-builder": "cd example-electron-builder && pnpm run ci",
"test:integration:mac-universal": "cd example-electron-builder && pnpm run ci:mac-universal",
"update:all": "pnpm --filter=\\!fixture-\\* --filter=\\!{example*/out/**/*} up -iL",
"watch": "pnpm run build:esm --watch"
},
Expand Down Expand Up @@ -103,6 +104,8 @@
"read-package-up": "^11.0.0"
},
"devDependencies": {
"@electron-forge/shared-types": "^7.4.0",
"@electron/packager": "^18.3.2",
"@eslint/js": "^9.0.0",
"@testing-library/webdriverio": "^3.2.1",
"@types/debug": "^4.1.10",
Expand All @@ -115,6 +118,7 @@
"@wdio/cli": "^8.27.2",
"@wdio/globals": "^8.27.2",
"@wdio/types": "^8.27.2",
"builder-util": "25.0.0-alpha.6",
"cross-env": "^7.0.3",
"electron": "^29.3.1",
"eslint": "^8.57.0",
Expand Down
Loading