Bring back yarn test script (#12072)

This commit is contained in:
fisker Cheung authored and GitHub committed 2022-01-12 08:47:55 +08:00
1 parent 668bbe7d0e
commit ddd45cf511
7 files changed
+26 -32

No files matched your search

+1 -4
View File
@@ -47,7 +47,4 @@ jobs:
run: npm install --global pnpm
- name: Run Tests
run: yarn test:dev-package:integration --maxWorkers=2
- name: Run Tests
run: yarn test:dev-package:format --maxWorkers=2
run: yarn test:dev-package --maxWorkers=2
+1 -1
View File
@@ -86,7 +86,7 @@ jobs:
# #8073 test
- name: Run Tests (PRETTIER_FALLBACK_RESOLVE)
run: yarn c8 yarn test:integration "tests/integration/__tests__/(config|plugin)"
run: yarn test "tests/integration/__tests__/(config|plugin)"
env:
PRETTIER_FALLBACK_RESOLVE: true
+8 -16
View File
@@ -65,7 +65,7 @@ jobs:
path: dist
- name: Lint Code
run: yarn test:dist:lint
run: yarn test:dist-lint
test:
timeout-minutes: 90
@@ -113,33 +113,25 @@ jobs:
name: dist
path: dist
- name: Run Integration Tests (macOS)
- name: Run Tests (macOS)
if: ${{ matrix.os == 'macos-latest' }}
run: yarn test:dist:integration --maxWorkers=4
run: yarn test:dist --maxWorkers=4
- name: Run Integration Tests (Linux and Windows)
- name: Run Tests (Linux and Windows)
if: ${{ matrix.os != 'macos-latest' }}
run: yarn test:dist:integration --maxWorkers=2
- name: Run Format Tests (macOS)
if: ${{ matrix.os == 'macos-latest' }}
run: yarn test:dist:format --maxWorkers=4
- name: Run Format Tests (Linux and Windows)
if: ${{ matrix.os != 'macos-latest' }}
run: yarn test:dist:format --maxWorkers=2
run: yarn test:dist --maxWorkers=2
- name: Run Format Tests (standalone) (macOS)
if: ${{ matrix.os == 'macos-latest' }}
run: yarn test:dist:standalone:format --maxWorkers=4
run: yarn test:dist-standalone --maxWorkers=4
- name: Run Format Tests (standalone) (Linux and Windows)
if: ${{ matrix.os != 'macos-latest' }}
run: yarn test:dist:standalone:format --maxWorkers=2
run: yarn test:dist-standalone --maxWorkers=2
# #8073 test
- name: Run Tests (PRETTIER_FALLBACK_RESOLVE)
run: yarn test:dist:integration "tests/integration/__tests__/(config|plugin)"
run: yarn test "tests/integration/__tests__/(config|plugin)"
env:
NODE_ENV: production
PRETTIER_FALLBACK_RESOLVE: true