File tree 2 files changed +42
-12
lines changed
2 files changed +42
-12
lines changed Original file line number Diff line number Diff line change
1
+ name : Pull Request Workflow
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+
8
+ env :
9
+ GO_VERSION : 1.20
10
+
11
+ jobs :
12
+ run-tests :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@v3
17
+
18
+ - name : Setup Go
19
+ uses : actions/setup-go@v3
20
+ with :
21
+ go-version : ${{ env.GO_VERSION }}
22
+
23
+ - name : Go Lint
24
+
25
+ with :
26
+ args : --timeout=5m --enable exportloopref
27
+ skip-pkg-cache : true
28
+ skip-build-cache : true
29
+ skip-go-installation : true
30
+
31
+ - name : Build
32
+ run : go build -o k8s-parallel-exec
Original file line number Diff line number Diff line change 1
- # This workflow will build a golang project
2
- # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3
-
4
- name : Go
1
+ name : Release Workflow
5
2
6
3
on :
7
- push :
8
- branches : [ "main" ]
9
- pull_request :
10
- branches : [ "main" ]
4
+ release :
5
+ types :
6
+ - published
11
7
12
- jobs :
8
+ env :
9
+ GO_VERSION : 1.20
13
10
11
+ jobs :
14
12
build :
15
13
runs-on : ubuntu-latest
16
14
steps :
@@ -19,10 +17,10 @@ jobs:
19
17
- name : Set up Go
20
18
uses : actions/setup-go@v3
21
19
with :
22
- go-version : 1.19
20
+ go-version : ${{ env.GO_VERSION }}
23
21
24
22
- name : Go Lint
25
- uses : golangci/golangci-lint-action@v3.3.1
23
+ uses : golangci/golangci-lint-action@v3.4.0
26
24
with :
27
25
args : --timeout=5m --enable exportloopref
28
26
skip-pkg-cache : true
37
35
env :
38
36
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
37
with :
40
- args : ' k8s-parallel-exec'
38
+ args : ' ./ k8s-parallel-exec'
You can’t perform that action at this time.
0 commit comments