Skip to content

Commit 12c3255

Browse files
authored
Split CI linting/playwright out into separate jobs (#50406)
1 parent 4605d89 commit 12c3255

File tree

1 file changed

+26
-7
lines changed

1 file changed

+26
-7
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
- release-*
1212

1313
jobs:
14-
build:
14+
test:
1515
runs-on: ubuntu-latest
1616

1717
strategy:
@@ -24,27 +24,46 @@ jobs:
2424

2525
steps:
2626
- uses: actions/checkout@v3
27-
with:
28-
fetch-depth: 5
2927
- name: Use node version ${{ matrix.node-version }}
3028
uses: actions/setup-node@v3
3129
with:
3230
node-version: ${{ matrix.node-version }}
3331
check-latest: true
3432
- run: npm ci
3533

36-
# Re: https://github.com/actions/setup-node/pull/125
37-
- name: Register Problem Matcher for TSC
38-
run: echo "##[add-matcher].github/tsc.json"
39-
4034
- name: Tests
4135
run: npm test -- --no-lint
4236

37+
lint:
38+
runs-on: ubuntu-latest
39+
40+
steps:
41+
- uses: actions/checkout@v3
42+
- uses: actions/setup-node@v3
43+
with:
44+
node-version: "*"
45+
check-latest: true
46+
- run: npm ci
47+
4348
- name: Linter
4449
run: npm run lint:ci
4550

51+
browser-integration:
52+
runs-on: ubuntu-latest
53+
54+
steps:
55+
- uses: actions/checkout@v3
56+
- uses: actions/setup-node@v3
57+
with:
58+
node-version: "*"
59+
check-latest: true
60+
- run: npm ci
61+
4662
- name: Adding playwright
4763
run: npm install --no-save --no-package-lock playwright
4864

65+
- name: Build local
66+
run: gulp local
67+
4968
- name: Validate the browser can import TypeScript
5069
run: gulp test-browser-integration

0 commit comments

Comments
 (0)