forked from GoogleCloudPlatform/microservices-demo
-
Notifications
You must be signed in to change notification settings - Fork 30
39 lines (36 loc) · 1.46 KB
/
ci.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
name: "Continuous Integration"
on:
push:
# run on pushes to main
branches:
- main
pull_request:
# run on pull requests targeting main
branches:
- main
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create kind cluster
uses: helm/[email protected]
- name: Deploy From Source
uses: hiberbee/[email protected]
with:
command: run
- name: Wait For Pods
timeout-minutes: 20
run: |
set -x
kubectl wait --for=condition=available --timeout=10m deployment/adservice
kubectl wait --for=condition=available --timeout=10m deployment/cartservice
kubectl wait --for=condition=available --timeout=10m deployment/checkoutservice
kubectl wait --for=condition=available --timeout=10m deployment/currencyservice
kubectl wait --for=condition=available --timeout=10m deployment/emailservice
kubectl wait --for=condition=available --timeout=10m deployment/frontend
kubectl wait --for=condition=available --timeout=10m deployment/loadgenerator
kubectl wait --for=condition=available --timeout=10m deployment/paymentservice
kubectl wait --for=condition=available --timeout=10m deployment/productcatalogservice
kubectl wait --for=condition=available --timeout=10m deployment/recommendationservice
kubectl wait --for=condition=available --timeout=10m deployment/shippingservice