File tree Expand file tree Collapse file tree 1 file changed +12
-19
lines changed Expand file tree Collapse file tree 1 file changed +12
-19
lines changed Original file line number Diff line number Diff line change 1
- # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2
- # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
-
4
- name : Node.js CI
1
+ name : CI
5
2
6
3
on :
7
4
push :
8
5
branches :
9
- - master
6
+ - main
10
7
pull_request :
11
8
branches :
12
- - master
9
+ - main
13
10
14
11
jobs :
15
- build :
12
+ test :
16
13
runs-on : ${{ matrix.os }}
17
14
18
15
strategy :
19
16
matrix :
20
- node-version : [14 .x, 16 .x]
17
+ node-version : [20 .x, 22 .x]
21
18
os : [ubuntu-latest]
22
19
23
20
steps :
24
- - uses : actions/checkout@v3
21
+ - uses : actions/checkout@v4
25
22
- name : Use Node.js ${{ matrix.node-version }}
26
- uses : actions/setup-node@v2
23
+ uses : actions/setup-node@v4
27
24
with :
28
25
node-version : ${{ matrix.node-version }}
29
- cache : ' yarn'
30
- - run : yarn
31
- - run : yarn build
32
- - run : yarn global add codecov
33
- - run : yarn test
34
- - run : yarn test:test262
35
-
36
- - run : codecov -f coverage/*.json
37
- - run : bash <(curl -s https://codecov.io/bash)
26
+ cache : pnpm
27
+ - run : pnpm install --frozen-lockfile
28
+ - run : pnpm build
29
+ - run : pnpm test
30
+ - run : pnpm test:test262
You can’t perform that action at this time.
0 commit comments