Skip to content

Commit d0f099a

Browse files
authored
ci(.github/workflows): add 'test.yml' and rename job (#1076)
* ci(.github/workflows/lint-and-type.yml): add matrix strategy for parallel execution * ci(.github/workflows): change jobs name * ci(.github/workflows): add 'test.yml' * ci(.github/workflows/test-old-typescript.yml): rename job to 'test_old_typescript' * ci(.github/workflows/test-multiple-versions.yml): remove 'pnpm run build' * ci(.github/workflows/test.yml): remove matrix strategy * ci(.github/workflows/test.yml): change test script to sequentially, add comment in build script
1 parent 84ea45b commit d0f099a

File tree

4 files changed

+7
-19
lines changed

4 files changed

+7
-19
lines changed

.github/workflows/test-multiple-builds.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
types: [opened, synchronize]
88

99
jobs:
10-
test_matrix:
10+
test_multiple_builds:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
fail-fast: false

.github/workflows/test-multiple-versions.yml

+1-15
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,7 @@ on:
77
types: [opened, synchronize]
88

99
jobs:
10-
test:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v4
14-
- uses: pnpm/action-setup@v4
15-
- uses: actions/setup-node@v4
16-
with:
17-
node-version: 'lts/*'
18-
cache: 'pnpm'
19-
- run: pnpm install
20-
- run: pnpm run build # we don't have any other workflows to test build
21-
- run: pnpm run test:spec
22-
23-
test_matrix:
10+
test_multiple_versions:
2411
runs-on: ubuntu-latest
2512
strategy:
2613
fail-fast: false
@@ -41,7 +28,6 @@ jobs:
4128
node-version: 'lts/*'
4229
cache: 'pnpm'
4330
- run: pnpm install
44-
- run: pnpm run build # for macro test
4531
- name: Install legacy testing-library
4632
if: ${{ startsWith(matrix.react, '16.') || startsWith(matrix.react, '17.') }}
4733
run: pnpm add -D @testing-library/[email protected]

.github/workflows/test-old-typescript.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
types: [opened, synchronize]
88

99
jobs:
10-
test_matrix:
10+
test_old_typescript:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
fail-fast: false

.github/workflows/lint-and-type.yml .github/workflows/test.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Lint and Type
1+
name: Test
22

33
on:
44
push:
@@ -7,7 +7,7 @@ on:
77
types: [opened, synchronize]
88

99
jobs:
10-
lint:
10+
test:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
@@ -20,3 +20,5 @@ jobs:
2020
- run: pnpm run test:format
2121
- run: pnpm run test:types
2222
- run: pnpm run test:lint
23+
- run: pnpm run test:spec
24+
- run: pnpm run build # we don't have any other workflows to test build

0 commit comments

Comments
 (0)