Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit e333bda

Browse files
committed
Enable tests with MongoDB.
Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
1 parent 1d0d897 commit e333bda

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/maven.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,25 @@ on:
1212

1313
jobs:
1414
build:
15-
1615
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
jdk-version: [11]
19+
mongodb-version: [3.6]
1720

1821
steps:
1922
- uses: actions/checkout@v2
20-
- name: Set up JDK 11
23+
24+
- name: Start MongoDB
25+
uses: supercharge/mongodb-github-action@1.4.0
26+
with:
27+
mongodb-version: ${{ matrix.mongodb-version }}
28+
mongodb-port: 53579
29+
30+
- name: Set up JDK ${{ matrix.jdk-version }}
2131
uses: actions/setup-java@v1
2232
with:
23-
java-version: 11
33+
java-version: ${{ matrix.jdk-version }}
34+
2435
- name: Build with Maven
25-
run: mvn -B package --file pom.xml -Dmaven.test.skip=true
36+
run: mvn -B package --file pom.xml

0 commit comments

Comments
 (0)