This repository has been archived by the owner on Apr 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (55 loc) · 1.76 KB
/
integration_test.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Integration Test
on:
pull_request:
branches:
- master
jobs:
run:
name: Integration Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
# Must use at least depth 2!
fetch-depth: 2
- name: Create kind cluster
uses: helm/kind-action@v1.2.0
- uses: actions/setup-python@v2
- uses: actions/setup-go@v2
with:
go-version: '1.17'
- name: Build Waterline Build Env
if: ${{ github.event.pull_request }}
env:
IMAGE_BUILD_ENV_BUILD: ${{ contains(github.event.pull_request.labels.*.name, 'rebuild-build-env-image') }}
run: |
if [ "${IMAGE_BUILD_ENV_BUILD}" = "true" ] ; then
export IMAGE_BUILD_ENV_BUILD=1;
else
export IMAGE_BUILD_ENV_BUILD=0;
fi
make image-build-env
- name: Build Waterline Dev Env
if: ${{ github.event.pull_request }}
env:
IMAGE_DEV_ENV_BUILD: ${{ contains(github.event.pull_request.labels.*.name, 'rebuild-dev-env-image') }}
run: |
if [ "${IMAGE_DEV_ENV_BUILD}" = "true" ] ; then
export IMAGE_DEV_ENV_BUILD=1;
else
export IMAGE_DEV_ENV_BUILD=0;
fi
make image-dev-env
- name: Install Waterline
run: |
export CLUSTER="chart-testing"
hack/local-up-waterlinet.sh
sleep 5
- name: Install localstack && aws client
run: |
helm repo add localstack-repo http://helm.localstack.cloud
helm upgrade --install localstack localstack-repo/localstack --version 0.1.2
pip install awscli
- name: Run integration test
run: |
bash test/integration_test/run.sh