File tree Expand file tree Collapse file tree 3 files changed +35
-30
lines changed
Expand file tree Collapse file tree 3 files changed +35
-30
lines changed Original file line number Diff line number Diff line change 11name : CI
22
3- on : [push, pull_request ]
3+ on : [push]
44
55jobs :
66 test :
7+ name : Test
78 runs-on : ubuntu-latest
89 steps :
910 - uses : actions/checkout@v2
1011 with :
1112 submodules : true
12- - name : Use Node.js 14.x
13- uses : actions/setup-node@v1
13+ - uses : actions/setup-node@v1
1414 with :
15- node-version : 14 .x
15+ node-version : 18 .x
1616 - run : yarn --frozen-lockfile
1717 - run : yarn test
1818 - name : Coveralls
@@ -22,36 +22,19 @@ jobs:
2222 path-to-lcov : packages/protoc-gen-nexus/coverage/lcov.info
2323 base-path : packages/protoc-gen-nexus
2424
25- lint :
26- if : github.event_name == 'pull_request'
27- runs-on : ubuntu-latest
28- steps :
29- - uses : actions/checkout@v2
30- with :
31- fetch-depth : 0
32- submodules : true
33- - name : Use Node.js 14.x
34- uses : actions/setup-node@v1
35- with :
36- node-version : 14.x
37- - run : yarn --frozen-lockfile
38- - run : yarn lint
39- env :
40- NODE_OPTIONS : " --max_old_space_size=8192"
41- - run : yarn format
42- - name : check generated code is up to date
43- run : git diff --exit-code
44-
4525 test-e2e :
26+ name : E2E Test - Node.js v${{ matrix.node-version }}
27+ strategy :
28+ matrix :
29+ node-version : [16, 18]
4630 runs-on : ubuntu-latest
4731 steps :
4832 - uses : actions/checkout@v2
4933 with :
5034 submodules : true
51- - name : Use Node.js 14.x
52- uses : actions/setup-node@v1
35+ - uses : actions/setup-node@v1
5336 with :
54- node-version : 14.x
37+ node-version : ${{ matrix.node-version }}
5538 - uses : bufbuild/buf-setup-action@v1
5639 - run : yarn --frozen-lockfile
5740 - run : yarn test:e2e
Original file line number Diff line number Diff line change 1+ name : Lint
2+
3+ on : [pull_request]
4+
5+ jobs :
6+ lint :
7+ name : Lint and Format
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v2
11+ with :
12+ fetch-depth : 0
13+ submodules : true
14+ - uses : actions/setup-node@v1
15+ with :
16+ node-version : 18.x
17+ - run : yarn --frozen-lockfile
18+ - run : yarn lint
19+ env :
20+ NODE_OPTIONS : " --max_old_space_size=8192"
21+ - run : yarn format
22+ - name : check code is up to date
23+ run : git diff --exit-code
Original file line number Diff line number Diff line change 2222 with :
2323 submodules : true
2424
25- - name : Setup Node.js 12.x
26- uses : actions/setup-node@v2
25+ - uses : actions/setup-node@v2
2726 with :
28- node-version : 14 .x
27+ node-version : 18 .x
2928
3029 - name : Install Dependencies
3130 run : yarn
You can’t perform that action at this time.
0 commit comments