Merge branch 'main' into refactor-vite-runtime #913
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
"on": | |
- push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: corepack enable | |
- run: pnpm i | |
- run: pnpm lint-check | |
- run: pnpm build | |
- run: pnpm tsc | |
- run: pnpm test | |
- run: npx playwright install chromium | |
- run: pnpm -C packages/demo test-e2e | |
- run: pnpm -C packages/demo build-preview | |
- run: E2E_COMMAND='pnpm preview' pnpm -C packages/demo test-e2e | |
test-vite-node-miniflare: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: corepack enable | |
- run: pnpm i | |
- run: pnpm build | |
- run: npx playwright install chromium | |
- run: pnpm -C packages/vite-node-miniflare/examples/basic test-e2e | |
- run: pnpm -C packages/vite-node-miniflare/examples/react test-e2e | |
- run: pnpm -C packages/vite-node-miniflare/examples/react-router test-e2e | |
- run: pnpm -C packages/vite-node-miniflare/examples/remix test-e2e | |
test-examples: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: corepack enable | |
- run: pnpm i | |
- run: pnpm build | |
- run: npx playwright install chromium | |
- name: test examples/ssr | |
run: | | |
export src_dir=examples/ssr | |
export dst_dir=$(mktemp -d) | |
bash examples/init.sh | |
bash examples/test.sh | |
- name: test examples/spa | |
run: | | |
export src_dir=examples/spa | |
export dst_dir=$(mktemp -d) | |
bash examples/init.sh | |
bash examples/test.sh |