forked from snowflakedb/snowflake-kafka-connector
-
Notifications
You must be signed in to change notification settings - Fork 1
109 lines (97 loc) · 3.34 KB
/
End2EndFullTestGCS.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: Kafka Connector End2End Full Version Test GCS
on:
push:
branches-ignore:
- '**'
#on:
# push:
# branches: [ master ]
# pull_request:
# branches: '**'
jobs:
build:
runs-on: ubuntu-18.04
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: "Install Java 8"
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Install Python
uses: actions/setup-python@v1
with:
python-version: '3.6'
architecture: 'x64'
- name: Decrypt profile.json
run: ./.github/scripts/decrypt_secret.sh 'gcs'
env:
SNOWFLAKE_TEST_PROFILE_SECRET: ${{ secrets.SNOWFLAKE_TEST_PROFILE_SECRET }}
- name: Install Dependency
run: |
pip3 install --upgrade setuptools
pip3 install requests certifi "confluent-kafka[avro,json,protobuf]>=1.5.0"
pip3 install avro-python3 kafka-python
pip3 install protobuf
pip3 install --upgrade snowflake-connector-python
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
sudo apt-get -y install jq
sudo apt-get -y install protobuf-compiler
- name: Install Squid as Proxy Server and Apache Utils for Password Authentication
run: |
sudo apt-get update
sudo apt-get -y install squid3
sudo apt-get install apache2-utils
- name: Change squid config and run Proxy Server
run: |
sudo touch /etc/squid/passwords
sudo chmod 777 /etc/squid/passwords
sudo htpasswd -db -c /etc/squid/passwords admin test
sudo mv .github/scripts/squid.conf /etc/squid/squid.conf
sudo service squid start
- name: Build with Unit and Integration Test
env:
JACOCO_COVERAGE: true
SNOWFLAKE_CREDENTIAL_FILE: "../profile.json"
SHELL: "/bin/bash"
run: |
cd test
./build_apache.sh ../../snowflake-kafka-connector
- name: End to End Test of Confluent Platform 5.2.0
env:
SNOWFLAKE_CREDENTIAL_FILE: "../profile.json"
run: |
cd test
./run_test_confluent.sh 5.2.0 ./apache_properties
- name: End to End Test of Apache Plarform 2.2.0
env:
SNOWFLAKE_CREDENTIAL_FILE: "../profile.json"
run: |
cd test
./run_test_apache.sh 2.2.0 ./apache_properties
- name: End to End Test of Confluent Platform 5.4.0
env:
SNOWFLAKE_CREDENTIAL_FILE: "../profile.json"
run: |
cd test
./run_test_confluent.sh 5.4.0 ./apache_properties
- name: End to End Test of Apache Plarform 2.4.0
env:
SNOWFLAKE_CREDENTIAL_FILE: "../profile.json"
run: |
cd test
./run_test_apache.sh 2.4.0 ./apache_properties
- name: End to End Test of Confluent Platform 5.5.0
env:
SNOWFLAKE_CREDENTIAL_FILE: "../profile.json"
run: |
cd test
./run_test_confluent.sh 5.5.0 ./apache_properties
- name: End to End Test of Apache Plarform 2.5.0
env:
SNOWFLAKE_CREDENTIAL_FILE: "../profile.json"
run: |
cd test
./run_test_apache.sh 2.5.0 ./apache_properties
- name: Code Coverage
uses: codecov/codecov-action@v1