Skip to content

Commit aacb434

Browse files
fixup! Split CI jobs related to code extension to know what job is failed
1 parent c351264 commit aacb434

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/actions/prepare-typescript/action.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Prepare TypeScript CI job
22
description: This action prepare CI job for TypeScript
33

4+
inputs:
5+
working-directory:
6+
required: true
7+
48
runs:
59
using: composite
610
steps:
@@ -11,3 +15,4 @@ runs:
1115
- name: Install dependencies
1216
shell: bash
1317
run: npm ci
18+
working-directory: ${{ inputs.working-directory }}

.github/workflows/ci.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ jobs:
137137

138138
- name: Setup Node.js
139139
uses: ./.github/actions/prepare-typescript
140+
with:
141+
working-directory: ./editors/code
140142

141143
# To fix this steps, please run `npm run format`.
142144
- run: npm run format:check
@@ -152,6 +154,8 @@ jobs:
152154

153155
- name: Setup Node.js
154156
uses: ./.github/actions/prepare-typescript
157+
with:
158+
working-directory: ./editors/code
155159

156160
# You may fix the code automatically by running `npm run lint:fix` if this steps fails.
157161
- run: npm run lint
@@ -176,6 +180,8 @@ jobs:
176180

177181
- name: Setup Node.js
178182
uses: ./.github/actions/prepare-typescript
183+
with:
184+
working-directory: ./editors/code
179185

180186
- name: Run VS Code tests (Linux)
181187
if: matrix.os == 'ubuntu-latest'
@@ -201,6 +207,8 @@ jobs:
201207

202208
- name: Setup Node.js
203209
uses: ./.github/actions/prepare-typescript
210+
with:
211+
working-directory: ./editors/code
204212

205213
# If this steps fails, your code's type integrity might be wrong at some places.
206214
#
@@ -219,6 +227,8 @@ jobs:
219227

220228
- name: Setup Node.js
221229
uses: ./.github/actions/prepare-typescript
230+
with:
231+
working-directory: ./editors/code
222232

223233
- run: npm run package --scripts-prepend-node-path
224234
working-directory: ./editors/code

0 commit comments

Comments
 (0)