Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(.github/workflows): add 'test.yml' and rename job #1076

Merged
merged 9 commits into from
Mar 19, 2025
2 changes: 1 addition & 1 deletion .github/workflows/test-multiple-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
types: [opened, synchronize]

jobs:
test_matrix:
test_multiple_builds:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down
16 changes: 1 addition & 15 deletions .github/workflows/test-multiple-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,7 @@ on:
types: [opened, synchronize]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'pnpm'
- run: pnpm install
- run: pnpm run build # we don't have any other workflows to test build
- run: pnpm run test:spec

test_matrix:
test_multiple_versions:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -41,7 +28,6 @@ jobs:
node-version: 'lts/*'
cache: 'pnpm'
- run: pnpm install
- run: pnpm run build # for macro test
- name: Install legacy testing-library
if: ${{ startsWith(matrix.react, '16.') || startsWith(matrix.react, '17.') }}
run: pnpm add -D @testing-library/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-old-typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
types: [opened, synchronize]

jobs:
test_matrix:
test_old_typescript:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint and Type
name: Test

on:
push:
Expand All @@ -7,7 +7,7 @@ on:
types: [opened, synchronize]

jobs:
lint:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -20,3 +20,5 @@ jobs:
- run: pnpm run test:format
- run: pnpm run test:types
- run: pnpm run test:lint
- run: pnpm run test:spec
- run: pnpm run build # we don't have any other workflows to test build