-
-
Notifications
You must be signed in to change notification settings - Fork 106
43 lines (35 loc) · 919 Bytes
/
test.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
name: Test
on:
push:
branches: [master, develop]
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
run_install: true
- name: Lint
run: pnpm lint
- name: Type check
run: pnpm type-check
- name: Build
run: pnpm build
- name: Test
env:
# This can't be added to the package.json script because we also test Node.js v16
# https://github.com/webpack/webpack/issues/14532
NODE_OPTIONS: --openssl-legacy-provider
run: pnpm test
- name: Test Node.js v16
run: pnpm --use-node-version=16.19.0 test