Skip to content

Commit 3c92efa

Browse files
workflows
1 parent ef3b1fe commit 3c92efa

File tree

1 file changed

+11
-49
lines changed

1 file changed

+11
-49
lines changed

.github/workflows/build-and-deploy.yml

+11-49
Original file line numberDiff line numberDiff line change
@@ -35,63 +35,19 @@ jobs:
3535
steps:
3636
- name: Checkout code
3737
uses: actions/checkout@v3
38+
- uses: cachix/install-nix-action@v20
39+
with:
40+
nix_path: nixpkgs=channel:nixos-unstable
3841
- name: Restore cached binaries
3942
uses: actions/cache/restore@v3
4043
with:
4144
path: ${{ github.workspace }}/bin
4245
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
5046
with:
5147
version: latest
5248
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
9551
- name: Cache installed binaries
9652
uses: actions/cache@v3
9753
with:
@@ -147,3 +103,9 @@ jobs:
147103
with:
148104
json: '{"controllerManager": {"manager": {"image": {"tag": "${{ needs.docker.outputs.version }}"}}}}'
149105
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

Comments
 (0)