Skip to content

Commit 23273ef

Browse files
committed
fix ci
1 parent e221ff7 commit 23273ef

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/check.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,17 @@ jobs:
241241
path: tests/output/javascript/node_modules
242242
key: node-modules-tests-${{ hashFiles('tests/output/javascript/yarn.lock') }}
243243

244-
- name: Run CTS
245-
id: cts
244+
- name: Run unit CTS
245+
run: yarn cli cts run javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }} --exclude-e2e
246+
247+
- name: Run e2e CTS
248+
id: cts-e2e
246249
continue-on-error: true
247-
run: yarn cli cts run javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }} ${{ github.event.pull_request.head.repo.fork && '--exclude-e2e' || '' }}
250+
if: ${{ !github.event.pull_request.head.repo.fork }}
251+
run: yarn cli cts run javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }} --exclude-unit
248252

249253
- name: Retry e2e CTS
250-
if: ${{ !github.event.pull_request.head.repo.fork && github.event.number && steps.cts.outcome == 'failure' }}
254+
if: ${{ !github.event.pull_request.head.repo.fork && steps.cts.outcome == 'failure' }}
251255
run: yarn cli cts run javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }} --exclude-unit
252256

253257
- name: Generate code snippets for documentation
@@ -331,10 +335,14 @@ jobs:
331335
- name: Generate CTS
332336
run: yarn cli cts generate ${{ matrix.client.language }} ${{ matrix.client.toRun }}
333337

334-
- name: Run CTS
335-
id: cts
338+
- name: Run unit CTS
339+
run: yarn cli cts run ${{ matrix.client.language }} ${{ matrix.client.toRun }} --exclude-e2e
340+
341+
- name: Run e2e CTS
342+
id: cts-e2e
336343
continue-on-error: true
337-
run: yarn cli cts run ${{ matrix.client.language }} ${{ matrix.client.toRun }} ${{ github.event.pull_request.head.repo.fork && '--exclude-e2e' || '' }}
344+
if: ${{ !github.event.pull_request.head.repo.fork }}
345+
run: yarn cli cts run ${{ matrix.client.language }} ${{ matrix.client.toRun }} --exclude-unit
338346

339347
- name: Retry e2e CTS
340348
if: ${{ !github.event.pull_request.head.repo.fork && steps.cts.outcome == 'failure' }}

0 commit comments

Comments
 (0)