Skip to content

Unify builds and add matrix build with LTS versions. #12

Unify builds and add matrix build with LTS versions.

Unify builds and add matrix build with LTS versions. #12

Workflow file for this run

name: scala-build
on:
push:
paths:
- 'scala/**'
- '.github/workflows/scala-build.yml'
pull_request:
paths:
- 'scala/**'
- '.github/workflows/scala-build.yml'
jobs:
build:
defaults:
run:
working-directory: ./scala
runs-on: ubuntu-latest
env:
DB_USER: root
DB_OLD_PASSWORD: root
DB_PASSWORD: mysql
steps:

Check failure on line 26 in .github/workflows/scala-build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/scala-build.yml

Invalid workflow file

You have an error in your yaml syntax on line 26
- name: Checkout Repository
uses: actions/checkout@v3
- name: Start MYSQL and import DB
run: |
sudo systemctl start mysql
mysqladmin --user=${{ env.DB_USER }} --password=${{ env.DB_OLD_PASSWORD }} password ${{ env.DB_PASSWORD }}
mysql -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} < ${GITHUB_WORKSPACE}/database/initDatabase.sql
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '17'
cache: 'sbt'
- name: Build and test
run: sbt test