debug #890
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres | |
ports: | |
- 5432:5432 | |
env: | |
POSTGRES_USER: enricher | |
POSTGRES_PASSWORD: supersecret1 | |
POSTGRES_DB: sql_enrichment_test | |
POSTGRES_PORT: 5432 | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: coursier/cache-action@v6 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Start HTTP server to test API enrichment in Common Enrich | |
run: python integration-tests/common/api-enrichment-test.py 8001 & | |
- name: Start HTTP server to test API enrichment in Common Fs2 | |
run: python integration-tests/common-fs2/api-enrichment-test.py 8000 & | |
- name: Prepare data in Postgres to test SQL enrichment in Common Enrich | |
run: psql -h localhost -p 5432 -U enricher -d sql_enrichment_test < integration-tests/common/sql-enrichment-test.sql | |
env: | |
PGPASSWORD: supersecret1 | |
- name: Prepare data in Postgres to test SQL enrichment in Common Fs2 | |
run: psql -h localhost -p 5432 -U enricher -d sql_enrichment_test < integration-tests/common-fs2/sql-enrichment-test.sql | |
env: | |
PGPASSWORD: supersecret1 | |
- name: Test API request | |
run: sbt "project common" "testOnly com.snowplowanalytics.snowplow.enrich.common.enrichments.registry.apirequest.ApiRequestEnrichmentIntegrationTest" |