Skip to content

Commit 798af21

Browse files
authored
Update check.yml
optimize workflows – PR and Commit CI are same
1 parent 7d08966 commit 798af21

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/check.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
name: Check
2+
23
on:
34
push:
4-
branches: [ master ]
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
510
workflow_dispatch:
11+
612
jobs:
713
check:
814
runs-on: ubuntu-latest
@@ -11,7 +17,6 @@ jobs:
1117
uses: actions/setup-go@v4
1218
with:
1319
go-version: 1.18
14-
id: go
1520

1621
- name: Check out code
1722
uses: actions/checkout@v3
@@ -23,4 +28,4 @@ jobs:
2328
run: make test
2429

2530
- name: Lint
26-
run: make lint
31+
run: make lint

0 commit comments

Comments
 (0)