Skip to content

Commit

Permalink
ci: fuck Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed Feb 6, 2022
1 parent eba0eab commit 1424f39
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 9 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,14 @@ jobs:
run: npm run type-check

- name: Test
run: npm --silent run test
if: runner.os != 'Windows'
run: npm run test

# ignore some test case on Windows until we can fix it
- name: Test-Windows
if: runner.os == 'Windows'
run: npm run test-win
shell: bash

coverage:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"format": "prettier --check \"packages/*/src/**/*.{ts,js,svelte}\"",
"lint": "eslint \"packages/*/src/**/*.{ts,js,svelte}\"",
"test": "jest --clearCache && cross-env jest --runInBand",
"test-win": "jest --clearCache && cross-env jest --runInBand --testPathIgnorePatterns=multiple-hmr",
"test:coverage": "jest --clearCache && jest --runInBand --coverage=true",
"changelog": "pnpm -r --filter ./packages run changelog",
"test:watch": "jest -w",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ export async function viteServe({
proxyConsole?: () => void
launchPage?: boolean
} = {}) {
await sleep(3000)
if (proxyConsole) {
proxyConsole()
}

await sleep(3000)

devServer = await createServer({
root: cwd,
})
Expand Down
2 changes: 1 addition & 1 deletion playground/eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"name": "vite-react-typescript-starter",
"name": "@playground/eslint-config",
"version": "0.0.0",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion playground/eslint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"name": "vite-react-typescript-starter",
"name": "@playground/eslint",
"version": "0.0.0",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion playground/multiple-hmr/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"name": "vite-react-typescript-starter",
"name": "@playground/multiple-hmr",
"version": "0.0.0",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion playground/multiple-reload/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"name": "vite-react-typescript-starter",
"name": "@playground/multiple-reload",
"version": "0.0.0",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion playground/react-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"name": "vite-react-typescript-starter",
"name": "@playground/react-ts",
"version": "0.0.0",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion playground/vue2-vls/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"name": "vue-template",
"name": "@playground/vue2-vls",
"version": "0.0.0",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion playground/vue3-vue-tsc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"name": "vite-vue-typescript-starter",
"name": "@playground/vue3-vue-tsc",
"version": "0.0.0",
"scripts": {
"dev": "vite",
Expand Down

0 comments on commit 1424f39

Please sign in to comment.