File tree Expand file tree Collapse file tree 2 files changed +58
-34
lines changed Expand file tree Collapse file tree 2 files changed +58
-34
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+
9
+ jobs :
10
+ lint :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+
15
+ - name : Set up Go
16
+ uses : actions/setup-go@v4
17
+ with :
18
+ go-version : " stable"
19
+
20
+ - name : Restore bin
21
+ uses : actions/cache@v3
22
+ with :
23
+ path : ./bin
24
+ key : ${{ runner.os }}-bin-${{ hashFiles('**/go.sum') }}
25
+
26
+ - name : Run linter
27
+ run : make lint
28
+
29
+ - name : Cache bin
30
+ uses : actions/cache@v3
31
+ with :
32
+ path : ./bin
33
+ key : ${{ runner.os }}-bin-${{ hashFiles('**/go.sum') }}
34
+
35
+ test :
36
+ runs-on : ubuntu-latest
37
+ steps :
38
+ - uses : actions/checkout@v3
39
+
40
+ - name : Set up Go
41
+ uses : actions/setup-go@v4
42
+ with :
43
+ go-version : " stable"
44
+
45
+ - name : Restore bin
46
+ uses : actions/cache@v3
47
+ with :
48
+ path : ./bin
49
+ key : ${{ runner.os }}-bin-${{ hashFiles('**/go.sum') }}
50
+
51
+ - name : Run tests
52
+ run : make test
53
+
54
+ - name : Cache bin
55
+ uses : actions/cache@v3
56
+ with :
57
+ path : ./bin
58
+ key : ${{ runner.os }}-bin-${{ hashFiles('**/go.sum') }}
You can’t perform that action at this time.
0 commit comments