compile only to 2.13.x #700
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, pull_request] | |
env: | |
SBT_OPTS: "-Dsbt.color=true -Dscala.color=true" | |
KAFKA_HOST: kafka:9092 | |
KAFKA_ZOOKEEPER_CONNECT: kafka:2181 | |
jobs: | |
run-tests: | |
name: Run tests | |
runs-on: ubuntu-latest | |
container: uptane/ci:jvm17-latest | |
services: | |
kafka: | |
image: spotify/kafka | |
db: | |
image: mariadb:10.4 | |
env: | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_USER: libats | |
MYSQL_PASSWORD: libats | |
MYSQL_DATABASE: libats | |
env: | |
DB_URL: "jdbc:mariadb://db:3306/libats" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Coursier cache | |
uses: coursier/cache-action@v6 | |
- run: until mysqladmin ping --protocol=TCP -h db -P 3306 -u root -proot; do echo waiting for mysql; sleep 1; done | |
- run: mysql --protocol=TCP --host=db --user=root --port 3306 -proot -e \ GRANT\ ALL\ PRIVILEGES\ ON\ \`libats%\`.\*\ TO\ \'libats\'@\'%\'\; | |
- run: sbt test |