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

Commit 112d3aa

Browse files
authored
Merge pull request #1 from monami-ya/pr-use-github-actions-1
Use GitHub Actions CI.
2 parents 3a6206e + 2ddc354 commit 112d3aa

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/maven.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This workflow will build a Java project with Maven
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Java CI with Maven
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
workflow_dispatch:
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
jdk-version: [11]
19+
mongodb-version: [3.6]
20+
21+
steps:
22+
- uses: actions/checkout@v2
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: Prepare DB
31+
run: 'mongo mongodb://localhost:53579/bcdb mongo-init.d/init.js'
32+
33+
- name: Set up JDK ${{ matrix.jdk-version }}
34+
uses: actions/setup-java@v1
35+
with:
36+
java-version: ${{ matrix.jdk-version }}
37+
38+
- name: Build with Maven
39+
run: mvn -B package --file pom.xml

0 commit comments

Comments
 (0)