forked from camunda/camunda-platform-helm
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (55 loc) · 1.77 KB
/
go-it.yaml
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
name: Integration Tests
on:
push:
branches: [ main ]
pull_request: { }
workflow_dispatch: { }
env:
HELM_VERSION: 3.6.3
KUBECTL_VERSION: 'latest'
KUBECTX: 'gke_zeebe-io_europe-west1-b_zeebe-cluster'
jobs:
build:
if: github.ref == 'refs/heads/main' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
env:
KUBECONFIG: .github/config/kubeconfig
# Add "id-token" with the intended permissions.
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v3
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v0'
with:
workload_identity_provider: 'projects/628707732411/locations/global/workloadIdentityPools/helm-identity-pool/providers/helm-identity-provider'
service_account: 'camunda-platform-helm@zeebe-io.iam.gserviceaccount.com'
- id: 'get-credentials'
name: 'Get GKE credentials'
uses: 'google-github-actions/get-gke-credentials@v0'
with:
cluster_name: 'zeebe-cluster'
location: 'europe-west1-b'
# The KUBECONFIG env var is automatically exported and picked up by kubectl.
- id: 'check-credentials'
name: 'Check credentials'
run: 'kubectl auth can-i create deployment'
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: "${{ env.HELM_VERSION }}"
- name: Add helm repos
run: |
helm repo add elastic https://helm.elastic.co
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
- name: Get Helm Deps
run: make deps
- name: Test
run: make it