@@ -4,75 +4,104 @@ on: [push, pull_request]
4
4
5
5
jobs :
6
6
test :
7
+ name : Test Node.js ${{ matrix.node-version }}
7
8
runs-on : ubuntu-latest
9
+ strategy :
10
+ fail-fast : true
11
+ matrix :
12
+ node-version :
13
+ - 18
14
+ - 22
15
+
8
16
steps :
9
- - uses : actions/checkout@v3
17
+ - name : Checkout
18
+ uses : actions/checkout@v4
19
+
20
+ - name : Install pnpm
21
+ uses : pnpm/action-setup@v3
22
+ id : pnpm-install
23
+ with :
24
+ version : 9.12.2
25
+ run_install : false
10
26
11
- - uses : actions/setup-node@v3
27
+ - name : Install Node.js
28
+ uses : actions/setup-node@v4
12
29
with :
13
- node-version : 16
14
- cache : yarn
30
+ node-version : ${{ matrix.node-version }}
31
+ cache : ' pnpm '
15
32
16
- - run : yarn install --frozen-lockfile
17
- - run : yarn test
33
+ - name : Install dependencies
34
+ run : pnpm install --frozen-lockfile --strict-peer-dependencies
35
+
36
+ - name : Run test
37
+ run : pnpm test
18
38
19
39
build-minimal :
40
+ name : Build Minimal Example ${{ matrix.node-version }}
20
41
runs-on : ubuntu-latest
42
+ strategy :
43
+ fail-fast : true
44
+ matrix :
45
+ node-version :
46
+ - 18
47
+ - 22
48
+
21
49
steps :
22
- - uses : actions/checkout@v3
50
+ - name : Checkout
51
+ uses : actions/checkout@v4
23
52
24
- - uses : actions/setup-node@v3
53
+ - name : Install pnpm
54
+ uses : pnpm/action-setup@v3
55
+ id : pnpm-install
25
56
with :
26
- node- version : 16
27
- cache : yarn
57
+ version : 9.12.2
58
+ run_install : false
28
59
29
- - run : yarn install --frozen-lockfile
30
- - run : yarn build
60
+ - name : Install Node.js
61
+ uses : actions/setup-node@v4
62
+ with :
63
+ node-version : ${{ matrix.node-version }}
64
+ cache : ' pnpm'
65
+
66
+ - name : Install dependencies
67
+ run : pnpm install --frozen-lockfile --strict-peer-dependencies
31
68
32
69
- name : Build minimal example
33
70
run : |
34
71
cd examples/minimal
35
- yarn build
72
+ pnpm build
36
73
37
74
build-full :
75
+ name : Build Full Example ${{ matrix.node-version }}
38
76
runs-on : ubuntu-latest
77
+ strategy :
78
+ fail-fast : true
79
+ matrix :
80
+ node-version :
81
+ - 18
82
+ - 22
83
+
39
84
steps :
40
- - uses : actions/checkout@v3
85
+ - name : Checkout
86
+ uses : actions/checkout@v4
41
87
42
- - uses : actions/setup-node@v3
88
+ - name : Install pnpm
89
+ uses : pnpm/action-setup@v3
90
+ id : pnpm-install
43
91
with :
44
- node- version : 16
45
- cache : yarn
92
+ version : 9.12.2
93
+ run_install : false
46
94
47
- - run : yarn install --frozen-lockfile
48
- - run : yarn build
95
+ - name : Install Node.js
96
+ uses : actions/setup-node@v4
97
+ with :
98
+ node-version : ${{ matrix.node-version }}
99
+ cache : ' pnpm'
49
100
50
- - name : Build full example
101
+ - name : Install dependencies
102
+ run : pnpm install --frozen-lockfile --strict-peer-dependencies
103
+
104
+ - name : Build minimal example
51
105
run : |
52
106
cd examples/full
53
- yarn build
54
-
55
- # TODO: using the official API with GitHub Actions results in too much rate
56
- # limiting and false negative build failures, so we're disabling it for now.
57
- # build-full-official-api:
58
- # runs-on: ubuntu-latest
59
- # steps:
60
- # - uses: actions/checkout@v3
61
-
62
- # - uses: actions/setup-node@v3
63
- # with:
64
- # node-version: 16
65
- # cache: yarn
66
-
67
- # - run: yarn install --frozen-lockfile
68
- # - run: yarn build
69
-
70
- # - name: Build full example using the official Notion API
71
-
72
- # env:
73
- # USE_OFFICIAL_NOTION_API: true
74
- # NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }}
75
-
76
- # run: |
77
- # cd examples/full
78
- # yarn build
107
+ pnpm build
0 commit comments