-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (49 loc) · 1.07 KB
/
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
name: CI
env:
# configure corepack
COREPACK_DEFAULT_TO_LATEST: 0
COREPACK_ENABLE_AUTO_PIN: 0
# configure yarn
YARN_ENABLE_IMMUTABLE_INSTALLS: 'false'
on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
branches:
- main
paths-ignore:
- '**.md'
jobs:
test:
name: Test
timeout-minutes: 5
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: [20]
os: [ubuntu-latest, macos-latest, windows-latest]
pm: ["pnpm@9"]
include:
- node: 22
os: ubuntu-latest
pm: "pnpm@9"
- node: 22
os: ubuntu-latest
pm: "yarn@4"
- node: 22
os: ubuntu-latest
pm: "npm@10"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: corepack enable
- name: Install dependencies
run: corepack ${{matrix.pm}} install
- name: Test
run: corepack ${{matrix.pm}} test