This repository was archived by the owner on Nov 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments