Skip to content

Commit 42f3be9

Browse files
authored
Merge pull request #248 from proto-graphql/izumin5210/ci
Use Node.js 16.x and 18.x on CI
2 parents c0ed9da + 05b7142 commit 42f3be9

File tree

3 files changed

+35
-30
lines changed

3 files changed

+35
-30
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on: [push]
44

55
jobs:
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

.github/workflows/lint.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ jobs:
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

0 commit comments

Comments
 (0)