-
Notifications
You must be signed in to change notification settings - Fork 513
46 lines (37 loc) · 1.31 KB
/
populate-it-data.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
name: Populate Integration Test Data
on:
workflow_dispatch # Manually triggered
jobs:
populate-integration-test-data:
runs-on: ubuntu-latest
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Java (corretto@11)
id: setup-java-corretto-11
uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 11
cache: sbt
- name: sbt update
if: steps.setup-java-corretto-11.outputs.cache-hit == 'false'
run: sbt +update
- name: gcloud auth
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
export_environment_variables: true
create_credentials_file: true
- name: Setup GitHub Action
run: scripts/gha_setup.sh
env:
CLOUDSQL_SQLSERVER_PASSWORD: ${{ secrets.CLOUDSQL_SQLSERVER_PASSWORD }}
- name: Populate GCS test data
run: sbt "integration/runMain com.spotify.scio.PopulateTestData"
- name: Populate BQ test data
run: sbt "integration/runMain com.spotify.scio.bigquery.PopulateTestData"
- name: Populate SQL test data
run: sbt "integration/runMain com.spotify.scio.jdbc.PopulateTestData"