-
Notifications
You must be signed in to change notification settings - Fork 22
61 lines (47 loc) · 1.61 KB
/
test-chart.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Test Chart
on:
pull_request:
jobs:
test-e2e:
name: chart
runs-on: ubuntu-latest
steps:
- name: Clone the code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: set up tmate session for debugging
if: ${{ failure() || runner.debug || contains(github.event.pull_request.labels.*.name, 'debug-ci') }}
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: false
detached: true
- name: Setup Minikube
run: |
test/scripts/github-action-helper.sh install_minikube_with_none_driver
- name: print k8s cluster status
run: |
kubectl get nodes
- name: use local disk
run: test/scripts/github-action-helper.sh use_local_disk
- name: create ceph cluster
run: test/scripts/github-action-helper.sh deploy_rook
- name: Prepare ceph-csi-operator
run: |
make docker-build IMG=ceph-csi-operator:v0.1.0
- name: Install Helm
run: |
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
- name: Verify Helm installation
run: helm version
- name: Lint Helm Chart
run: |
helm lint ./dist/chart
- name: Install Helm chart for project
run: |
helm install my-release ./dist/chart --create-namespace --namespace ceph-csi-operator-system
- name: Check Helm release status
run: |
helm status my-release --namespace ceph-csi-operator-system