Skip to content

Switch to new central #64

Switch to new central

Switch to new central #64

Workflow file for this run

name: Maven Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
services:
mariadb:
image: 'mariadb:10'
ports:
- 3306:3306
env:
MYSQL_DATABASE: test
MYSQL_ALLOW_EMPTY_PASSWORD: yes
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Setup test environment
run: |
touch test.properties
echo "database.mysql.host=127.0.0.1" >> test.properties
echo "database.mysql.port=3306" >> test.properties
echo "database.mysql.name=test" >> test.properties
echo "database.mysql.username=root" >> test.properties
echo "database.mysql.password=" >> test.properties
- name: Test
run: mvn -B test