Skip to content

Commit a3f1387

Browse files
committed
Added test action for feature branches
1 parent e2fc84b commit a3f1387

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/maven-test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Maven Test
2+
on:
3+
push:
4+
branches:
5+
- '**'
6+
- '!master'
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
services:
12+
mysql:
13+
image: mariadb:latest
14+
env:
15+
MYSQL_ALLOW_EMPTY_PASSWORD: yes
16+
MYSQL_DATABASE: test
17+
MYSQL_USER: test
18+
MYSQL_PASSWORD: test
19+
MYSQL_RANDOM_ROOT_PASSWORD: yes
20+
ports:
21+
- 3306
22+
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Set up JDK 1.8
26+
uses: actions/setup-java@v1
27+
with:
28+
java-version: 1.8
29+
- name: Test
30+
run: mvn -B test
31+
env:
32+
MYSQL_PORT: ${{ job.services.mysql.ports[3306] }}
33+
MYSQL_USERNAME: test
34+
MYSQL_PASSWORD: test

0 commit comments

Comments
 (0)