Skip to content

Commit

Permalink
fix gha
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffrey Chong committed Aug 29, 2024
1 parent 15de2b5 commit 50208b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Unit tests (1/3)
run: pnpm turbo @kaizen/components#test:vitest run -- --shard 1/4
run: pnpm turbo @kaizen/components#test:vitest -- run --shard 1/3

unit-tests-2:
if: github.head_ref != 'changeset-release/main'
Expand All @@ -47,7 +47,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Unit tests (2/3)
run: pnpm turbo @kaizen/components#test:vitest run -- --shard 2/4
run: pnpm turbo @kaizen/components#test:vitest -- run --shard 2/3

unit-tests-3:
if: github.head_ref != 'changeset-release/main'
Expand All @@ -58,15 +58,4 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Unit tests (3/3)
run: pnpm turbo @kaizen/components#test:vitest run -- --shard 3/4

unit-tests-4:
if: github.head_ref != 'changeset-release/main'
name: "test-unit"
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Unit tests (3/3)
run: pnpm turbo @kaizen/components#test:vitest run -- --shard 4/4
run: pnpm turbo @kaizen/components#test:vitest -- run --shard 3/3
4 changes: 1 addition & 3 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@
"outputs": ["dist/**"]
},
"@kaizen/components#test:jest:ci": {},
"@kaizen/components#test:vitest:shard1": {},
"@kaizen/components#test:vitest:shard2": {},
"@kaizen/components#test:vitest:shard3": {},
"@kaizen/components#test:vitest": {},
"@kaizen/tailwind#build": {
"dependsOn": ["@kaizen/design-tokens#build"],
"inputs": ["src/**"],
Expand Down

0 comments on commit 50208b3

Please sign in to comment.