-
Notifications
You must be signed in to change notification settings - Fork 7
121 lines (104 loc) · 3.39 KB
/
release_tests.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
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
110
111
112
113
114
115
116
117
118
119
120
121
name: Release Tests
on:
workflow_dispatch:
pull_request:
branches: ["release-*"]
jobs:
gcp_release_tests:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Setup GCP Auth
uses: "google-github-actions/auth@v1"
with:
# NOTE: We use a key file here because changing the quota project
# doesn't work with WIF.
credentials_json: ${{ secrets.GCP_SA_JSON_KEY }}
- name: "Set up Cloud SDK"
uses: "google-github-actions/setup-gcloud@v1"
- name: "Set up Pulumi"
run: |
curl -fsSL https://get.pulumi.com | sh
- name: Run Pub/Sub -> BigQuery Release Test
run: |
export GCP_PROJECT=${{ secrets.GCP_PROJECT }}
./release_tests/pubsub_to_bigquery/test.sh
- name: Run CSV -> BigQuery Release Test
run: |
export GCP_PROJECT=${{ secrets.GCP_PROJECT }}
./release_tests/gcs_to_bigquery/test.sh
- name: Run Pub/Sub Integration Test
run: |
export GCP_PROJECT=${{ secrets.GCP_PROJECT }}
./release_tests/pubsub_to_pubsub/test.sh
aws_release_tests:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: write
id-token: write
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: "Set up Pulumi"
run: |
curl -fsSL https://get.pulumi.com | sh
- name: Run SQS -> SQS Release Test
run: |
./release_tests/sqs_to_sqs/test.sh
# multi_cloud_release_tests:
# runs-on: ubuntu-latest
# timeout-minutes: 30
# permissions:
# contents: write
# id-token: write
# env:
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# GCP_PROJECT: ${{ secrets.GCP_PROJECT }}
# steps:
# - uses: actions/checkout@v3
# - name: Set up Python 3.10
# uses: actions/setup-python@v4
# with:
# python-version: "3.10"
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install .[dev]
# - name: Setup GCP Auth
# uses: "google-github-actions/auth@v1"
# with:
# # NOTE: We use a key file here because changing the quota project
# # doesn't work with WIF.
# credentials_json: ${{ secrets.GCP_SA_JSON_KEY }}
# - name: "Set up Cloud SDK"
# uses: "google-github-actions/setup-gcloud@v1"
# - name: "Set up Pulumi"
# run: |
# curl -fsSL https://get.pulumi.com | sh
# - name: Run S3FileStream -> BigQuery Release Test
# run: |
# ./release_tests/s3_to_bigquery/test.sh