@@ -35,63 +35,19 @@ jobs:
35
35
steps :
36
36
- name : Checkout code
37
37
uses : actions/checkout@v3
38
+ - uses : cachix/install-nix-action@v20
39
+ with :
40
+ nix_path : nixpkgs=channel:nixos-unstable
38
41
- name : Restore cached binaries
39
42
uses : actions/cache/restore@v3
40
43
with :
41
44
path : ${{ github.workspace }}/bin
42
45
key : ${{ runner.os }}-makefile-bin-${{ hashFiles('Makefile') }}
43
- - name : Set up Go environment
44
- uses : actions/setup-go@v4
45
- with :
46
- go-version : " 1.20"
47
- cache : false
48
- - name : golangci-lint
49
- uses : golangci/golangci-lint-action@v3
50
46
with :
51
47
version : latest
52
48
args : --timeout=5m
53
- - name : Install make
54
- run : sudo apt-get update && sudo apt-get install make
55
- - name : Generate code
56
- run : |
57
- make generate
58
- #if git diff-index --quiet HEAD --; then
59
- # echo "Code generated successfully."
60
- #else
61
- # echo "Code has generation issues."
62
- # echo $(git diff HEAD --)
63
- # echo $(git diff-index --quiet HEAD --)
64
- # ls api/v1
65
- # cat api/v1/zz_generated.deepcopy.go
66
- # echo "Please run 'make generate' and commit the changes."
67
- # exit 1
68
- #fi
69
- - name : Generate manifests
70
- run : |
71
- make manifests
72
- #if git diff-index --quiet HEAD --; then
73
- # echo "Manifests generated successfully."
74
- #else
75
- # echo "Manifests have generation issues."
76
- # echo "Please run 'make manifests' and commit the changes."
77
- # exit 1
78
- #fi
79
- - name : Generate helm chart
80
- run : |
81
- make helm
82
- #if git diff-index --quiet HEAD --; then
83
- # echo "Helm chart generated successfully."
84
- #else
85
- # echo "Helm chart has generation issues."
86
- # echo "Please run 'make helm' and commit the changes."
87
- # exit 1
88
- #fi
89
- - name : Vet code
90
- run : make vet
91
- - name : Test code
92
- run : make test
93
- - name : Build binary
94
- run : make build
49
+ - name : Test and build binary
50
+ run : nix build
95
51
- name : Cache installed binaries
96
52
uses : actions/cache@v3
97
53
with :
@@ -147,3 +103,9 @@ jobs:
147
103
with :
148
104
json : ' {"controllerManager": {"manager": {"image": {"tag": "${{ needs.docker.outputs.version }}"}}}}'
149
105
feature_name : ${{ github.event.repository.name }}
106
+
107
+
108
+ neckbeards
109
+ never apologize
110
+ slow down - not an informercial
111
+ filter words, like, eh, right. Just pause
0 commit comments