Skip to content

Commit 05021a7

Browse files
committed
ci(actions): oops, actually check types πŸ€¦πŸ»β€β™‚οΈ
1 parent b2d20a6 commit 05021a7

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

β€Ž.github/workflows/build.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,16 @@ on:
1313

1414
jobs:
1515
build:
16-
name: Build + Test + Release / Node ${{ matrix.node }}
16+
name: Build + Test + Release / Node ${{ matrix.node }} / playwright@${{ matrix.playwright }}
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
2020
node: ['12', '14', '16']
21-
playwright: ['1.12.0', 'latest']
21+
# TODO: technically we still support down to 1.12 but `locator.waitFor`
22+
# was introduced in 1.16 so anything earlier blows up type-checking.
23+
# This minimum will be bumped in the next breaking release that will be
24+
# entirely built around the `Locator` APIs, so update this then.
25+
playwright: ['1.16.0', 'latest']
2226

2327
steps:
2428
- name: Checkout
@@ -47,14 +51,17 @@ jobs:
4751
npm install playwright@${{ matrix.playwright }}
4852
npm install @playwright/test@${{ matrix.playwright }}
4953
50-
- name: Check types, run lint + tests
54+
- name: Check types
55+
run: npm run test:types
56+
57+
- name: Run lint + tests
5158
if: ${{ matrix.playwright == 'latest' }}
5259
run: |
5360
npm why playwright
5461
npm why @playwright/test
5562
npm run test
5663
57-
- name: Check types, run lint + tests
64+
- name: Run lint + tests
5865
if: ${{ matrix.playwright != 'latest' }}
5966
run: |
6067
npm why playwright

0 commit comments

Comments
Β (0)