File tree 2 files changed +1
-94
lines changed
2 files changed +1
-94
lines changed Original file line number Diff line number Diff line change 31
31
32
32
image-build :
33
33
runs-on : ubuntu-latest
34
- needs : tests
35
34
steps :
36
35
# Checkout to the latest commit
37
36
# On specific directory/path
59
58
DOCKER_TAG : ci
60
59
DNAME : ${{ secrets.DNAME }}
61
60
DPASS : ${{ secrets.DPASS }}
62
- run : make push-chaos-runner
63
-
64
- tests :
65
- needs : pre-checks
66
- runs-on : ubuntu-latest
67
- steps :
68
- # Checkout to the latest commit
69
- # On specific directory/path
70
- - name : Checkout
71
- uses : actions/checkout@v2
72
-
73
- # Install golang
74
- - uses : actions/setup-go@v2
75
- with :
76
- go-version : 1.20.0
77
-
78
- - name : Build chaos-runner image
79
- run : make build-amd64
80
-
81
- # Install and configure a kind cluster
82
- - name : Installing Prerequisites (K3S Cluster)
83
- env :
84
- KUBECONFIG : /etc/rancher/k3s/k3s.yaml
85
- run : |
86
- curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.21.11+k3s1 sh -s - --docker --write-kubeconfig-mode 664
87
- kubectl wait node --all --for condition=ready --timeout=90s
88
- mkdir -p $HOME/.kube
89
- cp /etc/rancher/k3s/k3s.yaml $HOME/.kube/config
90
- kubectl get nodes
91
-
92
- - name : Dependency checks
93
- env :
94
- KUBECONFIG : /etc/rancher/k3s/k3s.yaml
95
- run : |
96
- make deps
97
-
98
- - name : Running Go BDD Test
99
- env :
100
- KUBECONFIG : /etc/rancher/k3s/k3s.yaml
101
- run : |
102
- make test
61
+ run : make push-chaos-runner
Original file line number Diff line number Diff line change 18
18
- name : Checkout
19
19
uses : actions/checkout@v2
20
20
21
- - name : gofmt check
22
- run : make gofmt-check
23
-
24
- - name : golangci-lint
25
- uses : reviewdog/action-golangci-lint@v1
26
-
27
- - name : unused-package check
28
- run : make unused-package-check
29
-
30
21
image-build :
31
22
runs-on : ubuntu-latest
32
- needs : tests
33
23
steps :
34
24
# Checkout to the latest commit
35
25
# On specific directory/path
73
63
DNAME : ${{ secrets.DNAME }}
74
64
DPASS : ${{ secrets.DPASS }}
75
65
run : make push-chaos-runner
76
-
77
- tests :
78
- needs : pre-checks
79
- runs-on : ubuntu-latest
80
- steps :
81
- # Checkout to the latest commit
82
- # On specific directory/path
83
- - name : Checkout
84
- uses : actions/checkout@v2
85
-
86
- # Install golang
87
- - uses : actions/setup-go@v2
88
- with :
89
- go-version : 1.20.0
90
-
91
- # Install and configure a kind cluster
92
- - name : Installing Prerequisites (K3S Cluster)
93
- env :
94
- KUBECONFIG : /etc/rancher/k3s/k3s.yaml
95
- run : |
96
- curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.21.11+k3s1 sh -s - --docker --write-kubeconfig-mode 664
97
- kubectl wait node --all --for condition=ready --timeout=90s
98
- mkdir -p $HOME/.kube
99
- cp /etc/rancher/k3s/k3s.yaml $HOME/.kube/config
100
- kubectl get nodes
101
-
102
- - name : Dependency checks
103
- run : |
104
- make deps
105
-
106
- - name : Build Docker Image
107
- env :
108
- DOCKER_REPO : litmuschaos
109
- DOCKER_IMAGE : chaos-runner
110
- DOCKER_TAG : ci
111
- run : |
112
- make build-amd64
113
-
114
- - name : Running Go BDD Test
115
- run : |
116
- make test
117
-
You can’t perform that action at this time.
0 commit comments