File tree Expand file tree Collapse file tree 2 files changed +47
-3
lines changed Expand file tree Collapse file tree 2 files changed +47
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : PR
2
+
3
+ on :
4
+ pull_request :
5
+ merge_group :
6
+
7
+ jobs :
8
+ dump_contexts_to_log :
9
+ runs-on : ${{ matrix.os }}
10
+ env :
11
+ CGO_ENABLED : 0
12
+
13
+ strategy :
14
+ matrix :
15
+ go-version : [ stable ]
16
+ os : [ubuntu-latest] # [ubuntu-latest, macos-latest, windows-latest]
17
+
18
+ steps :
19
+ - name : Checkout code
20
+ uses : actions/checkout@v4
21
+ with :
22
+ fetch-depth : 0
23
+ - name : Set up Go ${{ matrix.go-version }}
24
+ uses : actions/setup-go@v5
25
+ with :
26
+ go-version : ${{ matrix.go-version }}
27
+
28
+ - name : Build
29
+ run : make
30
+
31
+ - name : Dump GitHub context
32
+ env :
33
+ GITHUB_CONTEXT : ${{ toJson(github) }}
34
+ run : echo "$GITHUB_CONTEXT"
35
+
36
+ - name : git log
37
+ run : git log --graph --pretty=tformat:'%Cred%h%Creset %Cblue%G?%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ar)%Creset' --branches --remotes
38
+
39
+ - name : golangci-lint
40
+ uses : golangci/golangci-lint-action@3ab19875d7f33278aa6f7cdbdd1f37ed29bbace2
41
+ with :
42
+ version : v1.57
43
+ # args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0
44
+ # install-mode: "goinstall"
45
+ only-new-issues : true
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ name: Push
2
2
3
3
on :
4
4
push :
5
+ branches :
6
+ - temp
5
7
6
8
jobs :
7
9
dump_contexts_to_log :
17
19
steps :
18
20
- name : Checkout code
19
21
uses : actions/checkout@v4
20
- with :
21
- fetch-depth : 0
22
-
23
22
- name : Set up Go ${{ matrix.go-version }}
24
23
uses : actions/setup-go@v5
25
24
with :
You can’t perform that action at this time.
0 commit comments