File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Docker test builds
1+ name : Test
22
33on :
44 push :
77 branches : [main]
88
99jobs :
10+ golang :
11+ name : Golang tests
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+ - name : Set up QEMU
16+ uses : docker/setup-qemu-action@v2
17+ - name : Set up Docker Buildx
18+ uses : docker/setup-buildx-action@v2
19+ - uses : actions/setup-go@v5
20+ with :
21+ go-version : 1.24
22+ - name : start soft-serve
23+ run : ./hack/soft-serve/start.sh
24+ - name : run golang tests
25+ env :
26+ SOPS_AGE_KEY_FILE : ${{ github.workspace }}/test_assets/keys.txt
27+ GITOPS_ROOT_DIR : ${{ github.workspace }}
28+ run : go test ./internal/...
1029 docker :
1130 strategy :
1231 fail-fast : false
Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ homebrew-gitops/
66.gitops-state.yaml
77sandbox /
88
9- .github / hack /soft-serve /data /
10- .github / hack /soft-serve /gitops-test /
11- .github / hack /soft-serve /ssh-key
12- .github / hack /soft-serve /ssh-key.pub
9+ hack /soft-serve /data /
10+ hack /soft-serve /gitops-test /
11+ hack /soft-serve /ssh-key
12+ hack /soft-serve /ssh-key.pub
1313
1414.vscode /launch.json
1515
Original file line number Diff line number Diff line change @@ -189,12 +189,12 @@ func (p *GitPatcher) Patch(patchTasks []PatchTask) error {
189189 return p .GitConnection .Push ()
190190 }
191191
192- for i := 0 ; i < 3 ; i ++ {
192+ for i := 0 ; i < 5 ; i ++ {
193193 err = executePush ()
194194 if err == nil {
195195 break
196196 }
197- time .Sleep (5 * time .Second )
197+ time .Sleep (time . Duration ( i + 1 ) * time .Second )
198198 }
199199
200200 return err
You can’t perform that action at this time.
0 commit comments