forked from web-std/io
-
Notifications
You must be signed in to change notification settings - Fork 24
74 lines (55 loc) · 1.61 KB
/
validate.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Validate
on:
push:
branches:
- main
pull_request:
jobs:
typecheck:
name: ʦ TypeScript (${{ matrix.project }})
strategy:
fail-fast: false
matrix:
project: [blob, fetch, file, form-data, stream]
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
cache: yarn
node-version: 16
- name: 📥 Install deps
run: yarn --frozen-lockfile
- name: 🔎 Type check
run: yarn typecheck
working-directory: packages/${{matrix.project}}
test:
name: 🧪 Test (${{ matrix.project }} / ${{ matrix.os }} / node@${{ matrix.node }})
strategy:
fail-fast: false
matrix:
node: [14, 16, 18, 20]
os: [ubuntu-latest, windows-latest, macos-latest]
project: [blob, fetch, file, form-data, stream]
runs-on: ${{ matrix.os }}
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
cache: yarn
node-version: ${{ matrix.node }}
- name: 📥 Install deps
run: yarn --frozen-lockfile
- name: 🧪 Test (CJS)
run: yarn test:cjs
working-directory: packages/${{matrix.project}}
- name: 🧪 Test (ES)
run: yarn test:es
working-directory: packages/${{matrix.project}}
- name: 🧪 Test (Web)
run: npm run test:web --if-present
working-directory: packages/${{matrix.project}}