Skip to content

Commit

Permalink
test: clean up system-test setup against emulator (#319)
Browse files Browse the repository at this point in the history
* test: change system-test setup against emulator

Use Docker image instead of manually downloading the emulator binary and
running it.

* chore: cleanup unusued script file

* fix: use latest version of docker image
  • Loading branch information
skuruppu authored Jul 9, 2020
1 parent eead88d commit 8cd79e7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 48 deletions.
47 changes: 0 additions & 47 deletions .github/workflows/integration-tests-against-emulator.sh

This file was deleted.

12 changes: 11 additions & 1 deletion .github/workflows/integration-tests-against-emulator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,23 @@ name: integration-tests-against-emulator
jobs:
units:
runs-on: ubuntu-latest

services:
emulator:
image: gcr.io/cloud-spanner-emulator/emulator:latest
ports:
- 9010:9010
- 9020:9020

steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- run: java -version
- run: .kokoro/build.sh
- run: sh .github/workflows/integration-tests-against-emulator.sh
- run: mvn -B -Dspanner.testenv.instance="" -Penable-integration-tests -DtrimStackTrace=false -Dclirr.skip=true -Denforcer.skip=true -fae verify
env:
JOB_TYPE: test
SPANNER_EMULATOR_HOST: localhost:9010
GOOGLE_CLOUD_PROJECT: emulator-test-project

0 comments on commit 8cd79e7

Please sign in to comment.