File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : ci
2- ' on ' :
3- - push
4- - pull_request
1+ name : Tests
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+
59jobs :
6- test :
7- name : Node ${{ matrix.node }} / ${{ matrix.os }}
8- runs-on : ${{ matrix.os }}
10+ unit :
11+ runs-on : ubuntu-latest
912 strategy :
1013 fail-fast : false
1114 matrix :
12- os :
13- - ubuntu-latest
14- node :
15- - ' 14'
15+ # see https://nodejs.org/en/about/releases/
16+ node-version : [16.x, 18.x, 20.x]
17+
1618 steps :
17- - uses : actions/checkout@v2
18- - uses : actions/setup-node@v2
19- with :
20- node-version : ${{ runner.node }}
21- - run : npm install
22- - run : npm run build --if-present
23- - run : npm test
19+ - uses : actions/checkout@main
20+ - uses : actions/setup-node@main
21+ with :
22+ node-version : ${{ matrix.node-version }}
23+ - run : npm install
24+ - run : npm test
25+
26+ standard :
27+ runs-on : ubuntu-latest
28+
29+ steps :
30+ - uses : actions/checkout@main
31+ - uses : actions/setup-node@main
32+ with :
33+ # don't use lts/* to prevent hitting rate-limit
34+ node-version : 20.x
35+ - run : npm install
36+ - run : npm run standard
You can’t perform that action at this time.
0 commit comments