Merge pull request #631 from scala-steward/update/sbt-1.10.7 #1225
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 & Build | |
on: [push, pull_request] | |
env: | |
SBT_OPTS: "-Dsbt.color=true -Dscala.color=true" | |
jobs: | |
run-tests: | |
name: Run tests | |
runs-on: ubuntu-latest | |
container: uptane/ci:latest | |
services: | |
db: | |
image: mariadb:10.4 | |
env: | |
MYSQL_ROOT_PASSWORD: "root" | |
MYSQL_DATABASE: "ota_treehub" | |
MYSQL_USER: "treehub" | |
MYSQL_PASSWORD: "treehub" | |
env: | |
DB_URL: "jdbc:mariadb://db:3306/ota_treehub" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: coursier/setup-action@v1 | |
with: | |
jvm: 'temurin:1.17.0.3' | |
- name: Coursier cache | |
uses: coursier/cache-action@v6 | |
- run: ./deploy/ci-db-setup.sh db | |
- run: sbt ut:test |