-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 969 Bytes
/
maven-test.yml
File metadata and controls
33 lines (30 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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