Skip to content

Commit b607f5d

Browse files
committed
Run test only on push
1 parent c0ed9da commit b607f5d

File tree

2 files changed

+25
-21
lines changed

2 files changed

+25
-21
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: CI
22

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

55
jobs:
66
test:
@@ -22,26 +22,6 @@ 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:
4626
runs-on: ubuntu-latest
4727
steps:

.github/workflows/lint.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Lint
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
lint:
7+
if: github.event_name == 'pull_request'
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
with:
12+
fetch-depth: 0
13+
submodules: true
14+
- name: Use Node.js 14.x
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 14.x
18+
- run: yarn --frozen-lockfile
19+
- run: yarn lint
20+
env:
21+
NODE_OPTIONS: "--max_old_space_size=8192"
22+
- run: yarn format
23+
- name: check code is up to date
24+
run: git diff --exit-code

0 commit comments

Comments
 (0)