-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.18 KB
/
pr.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
name: PR to Main Branch
on:
pull_request:
types: [opened, synchronize]
branches:
- main
workflow_dispatch:
concurrency:
group: pr-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
helm-lint:
runs-on: ubicloud-standard-2
steps:
- uses: actions/checkout@v3
- name: Lint helm chart
run: |
helm lint cedana-helm
install-test:
runs-on: ubicloud-standard-2
steps:
- uses: actions/checkout@v3
- name: Use Docker
uses: actions-hub/docker/cli@master
env:
SKIP_LOGIN: true
# check if this uses docker image
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1
with:
cluster_name: kind
- name: install helm chart
run: |
helm install cedana ./cedana-helm --create-namespace -n cedana-operator-system \
--set cedanaConfig.cedanaAuthToken="${CEDANA_API_KEY}" \
--set cedanaConfig.cedanaUrl="https://sandbox.cedana.ai"
kubectl wait --for=jsonpath='{.status.phase}'=Running --all pod -n cedana-operator-system
env:
CEDANA_API_KEY: ${{ secrets.CEDANA_API_KEY }}