forked from fastify/fastify
-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (64 loc) · 1.65 KB
/
package-manager-ci.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
75
76
77
78
79
80
name: package-manager-ci
on:
push:
branches:
- main
permissions:
contents: read
jobs:
pnpm:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Maintenance and active LTS
node-version: [16, 18, 20]
os: [ubuntu-latest]
pnpm-version: [8]
# pnpm@8 does not support Node.js 14 so include it separately
include:
- node-version: 14
os: ubuntu-latest
pnpm-version: 7
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install with pnpm
uses: pnpm/action-setup@v2
with:
version: ${{ matrix.pnpm-version }}
- run: pnpm install
- name: Run tests
run: |
pnpm run test:ci
env:
NODE_OPTIONS: no-network-family-autoselection
yarn:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Maintenance and active LTS
node-version: [14, 16, 18, 20]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install with yarn
run: |
curl -o- -L https://yarnpkg.com/install.sh | bash
yarn install --ignore-engines
- run: yarn
- name: Run tests
run: |
yarn run test:ci
env:
NODE_OPTIONS: no-network-family-autoselection