-
-
Notifications
You must be signed in to change notification settings - Fork 296
53 lines (40 loc) · 1.13 KB
/
verify-node.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Verify Node
on: pull_request
env:
FORCE_COLOR: true
jobs:
verify-linux:
timeout-minutes: 30
name: Verify linux
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- '18'
- '19'
steps:
- uses: actions/checkout@v3
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
env:
FORCE_COLOR: 0
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install Playwright dependencies
run: npx playwright install-deps
# Set up GitHub Actions caching for Wireit.
- uses: google/wireit@setup-github-actions-caching/v1
- name: Install Dependencies
run: npm ci
- name: Build packages
run: npm run build
- name: Build types for js packages
run: npm run types
# build for production in CI to make sure tests can run with production build
- name: Build specific packages for production
run: npm run build:production
- name: Lint
run: npm run lint
- name: Test
run: npm run test