-
Notifications
You must be signed in to change notification settings - Fork 10
49 lines (40 loc) · 1.58 KB
/
Copy pathe2e.yml
File metadata and controls
49 lines (40 loc) · 1.58 KB
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
name: E2E Integration Tests
on:
pull_request:
branches: ["main", "release/**"]
schedule:
- cron: '0 2 * * *' # Runs daily at 2:00 AM UTC
jobs:
e2e-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: 'go.mod'
- name: Install Helm
uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5.0.1
- name: Install Dependencies (Kind, Kuttl, Dig)
run: |
# Install dig for DNS assertions
sudo apt-get update && sudo apt-get install -y dnsutils
# Install the latest Kind (v0.32.0)
curl -sSLo ./kind https://kind.sigs.k8s.io/dl/v0.32.0/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
# Install the latest Kuttl (v0.26.0)
curl -sSLo kubectl-kuttl https://github.com/kudobuilder/kuttl/releases/download/v0.26.0/kubectl-kuttl_0.26.0_linux_x86_64
chmod +x kubectl-kuttl
sudo mv kubectl-kuttl /usr/local/bin/
- name: Prepare STACKIT Service Account Key
run: |
echo '${{ secrets.STACKIT_SERVICE_ACCOUNT_KEY }}' > /tmp/sa.json
- name: Run E2E Tests
env:
PROJECT_ID: ${{ secrets.STACKIT_PROJECT_ID }}
ZONE_NAME: ${{ secrets.STACKIT_ZONE_NAME }}
AUTH_KEY_PATH: /tmp/sa.json
run: |
make test-e2e-local