Skip to content

Populate Integration Test Data #17

Populate Integration Test Data

Populate Integration Test Data #17

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"