Skip to content

Commit

Permalink
fix: window e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohuoni committed Aug 21, 2024
1 parent a74da14 commit bfc49b8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ jobs:
- run: cargo test
build:
name: Mako Build
defaults:
run:
shell: powershell
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -86,6 +89,9 @@ jobs:
test_e2e:
name: E2E
needs: build
defaults:
run:
shell: powershell
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -116,7 +122,7 @@ jobs:
run: ls -l ./packages/mako
- name: Test E2E
run: pnpm ${{ matrix.script }}

lint:
name: Clippy
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion scripts/mako.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const path = require('path');
const fs = require('fs');
const { build } = require('@umijs/mako');
const cwd = process.argv[2] || process.cwd();
const cwd = process.argv[2];

console.log('> run mako build for', cwd);
const config = getMakoConfig();
Expand Down
2 changes: 1 addition & 1 deletion scripts/test-e2e.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ for (const dir of onlyDir ? [onlyDir] : dirs) {
} else {
try {
// run mako build
await $`node ./mako.js`;
await $`node ${path.join(root, 'scripts', 'mako.js')} ${cwd}`;
} catch (e) {
const isErrorCase = dir.split('.').includes('error');
if (isErrorCase) {
Expand Down

0 comments on commit bfc49b8

Please sign in to comment.