-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (47 loc) · 1.24 KB
/
smoke.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
name: Smoke Tests
on:
push:
pull_request:
branches:
- main
workflow_dispatch:
schedule:
- cron: 0 0 * * *
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create Kind cluster
uses: helm/kind-action@v1
- name: Wait for apiserver
run: |
# Wait for apiserver to be ready
kind export kubeconfig --name chart-testing
while true; do
kubectl api-resources
if [[ $? -eq 0 ]]; then
break
else
sleep 1
fi
done
- name: Build images
run: |
set -e
export REGISTRY=localhost
export SKIP_PUSH=yes
echo "--- building eno..."
./dev/build.sh
for i in ./examples/*/build.sh; do
echo "--- running $i..."
$i
done
# Copy images to kind
for image in $(docker images --format "{{.Repository}}:{{.Tag}}" | grep localhost); do
echo "--- pushing $image"
kind load docker-image --name chart-testing $image
done
- name: Run tests
timeout-minutes: 5
run: ./hack/smoke-test.sh