File tree Expand file tree Collapse file tree 1 file changed +81
-0
lines changed Expand file tree Collapse file tree 1 file changed +81
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request :
7
+ branches : [ main ]
8
+
9
+ jobs :
10
+
11
+ test :
12
+ name : Test
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+
16
+ - name : Set up Go 1.x
17
+ uses : actions/setup-go@v2
18
+ with :
19
+ go-version : ^1.13
20
+ id : go
21
+
22
+ - name : Check out code into the Go module directory
23
+ uses : actions/checkout@v2
24
+
25
+ - name : Cache go module cache
26
+ id : cache-go-mod
27
+ uses : actions/cache@v2
28
+ with :
29
+ path : ~/go/pkg/mod
30
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
31
+ restore-keys : |
32
+ ${{ runner.os }}-go-
33
+
34
+ - name : Get dependencies
35
+ run : go mod download
36
+
37
+ - name : Build
38
+ run : make build
39
+
40
+ - name : Lint
41
+ uses : golangci/golangci-lint-action@v1
42
+ with :
43
+ # Required: the version of golangci-lint is required and must be specified
44
+ # without patch version: we always use the latest patch version.
45
+ version : v1.27
46
+
47
+ - name : Test
48
+ run : make test
49
+
50
+ - uses : shogo82148/actions-goveralls@v1
51
+ with :
52
+ path-to-profile : cover.out
53
+
54
+ # deploy:
55
+ # name: Deploy
56
+ # needs: test
57
+ # if: github.event_name == 'push' && github.ref == 'refs/heads/main'
58
+ # runs-on: ubuntu-latest
59
+ # steps:
60
+ #
61
+ # - name: Check out code into the Go module directory
62
+ # uses: actions/checkout@v2
63
+ #
64
+ # - name: Push helm-operator image to Quay
65
+ # uses: docker/build-push-action@v1
66
+ # with:
67
+ # username: ${{ secrets.QUAY_USERNAME }}
68
+ # password: ${{ secrets.QUAY_PASSWORD }}
69
+ # registry: quay.io
70
+ # repository: joelanford/helm-operator
71
+ # tags: main
72
+ #
73
+ # - name: Push example nginx-operator image to Quay
74
+ # uses: docker/build-push-action@v1
75
+ # with:
76
+ # path: example/
77
+ # username: ${{ secrets.QUAY_USERNAME }}
78
+ # password: ${{ secrets.QUAY_PASSWORD }}
79
+ # registry: quay.io
80
+ # repository: joelanford/nginx-operator
81
+ # tags: latest
You can’t perform that action at this time.
0 commit comments