Prepare for 3.3.0 release #1087
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: telemetryIntegTest | |
on: push | |
jobs: | |
integ_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: coursier/cache-action@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Set up python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: build | |
run: | | |
sbt stdout/docker:publishLocal | |
- name: Get current SBT version | |
id: ver | |
run: | | |
export PROJECT_VERSION=$(sbt version -Dsbt.log.noformat=true | perl -ne 'print "$1\n" if /info.*(\d+\.\d+\.\d+[^\r\n]*)/' | tail -n 1 | tr -d '\n') | |
echo "::set-output name=project_version::$PROJECT_VERSION" | |
- name: run micro | |
run: > | |
docker run -d | |
--name micro | |
--mount type=bind,source=$(pwd)/.github/workflows/integration_tests/telemetry/micro_config,destination=/config | |
-p 9191:9191 snowplow/snowplow-micro:1.2.1 | |
--collector-config /config/config.hocon | |
--iglu /config/iglu.json | |
- name: run collectors | |
run: | | |
docker run -d | |
--name enabled | |
-v $(pwd)/.github/workflows/integration_tests/telemetry/sender_config/config.hocon:/snowplow/config.hocon \ | |
-p 9292:9292 | |
snowplow/scala-stream-collector-stdout:$PROJECT_VERSION | |
docker run -d | |
--name disabled | |
-v $(pwd)/.github/workflows/integration_tests/telemetry/sender_config/config_disabled.hocon:/snowplow/config.hocon | |
-p 10292:10292 | |
snowplow/scala-stream-collector-stdout:$PROJECT_VERSION | |
sleep 30 | |
- name: assess result | |
run: | | |
pip install requests | |
python3 .github/workflows/integration_tests/telemetry/verify_micro_content.py | |
- name: clean up | |
run: docker stop micro |