Skip to content

Add build badge

Add build badge #6

Workflow file for this run

name: CI
on: [ push ]
jobs:
compile:
runs-on: ubuntu-latest
name: Running Java ${{ matrix.java }} compile
steps:
- uses: actions/checkout@v3
- name: Set up JDK 18
uses: actions/setup-java@v1
with:
distribution: 'temurin'
java-version: '17'
cache: maven
- name: Compile code
run: mvn compile
test:
runs-on: ubuntu-latest
name: Run tests
needs: compile
steps:
- uses: actions/checkout@v3
- name: Set up JDK 18
uses: actions/setup-java@v1
with:
distribution: 'temurin'
java-version: '17'
cache: maven
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.10.0
with:
mongodb-version: '6.0'
- name: Run unit tests
run: mvn test
build:
runs-on: ubuntu-latest
name: Run build
needs: test
steps:
- uses: actions/checkout@v3
- name: Set up JDK 18
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: maven
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.10.0
with:
mongodb-version: '6.0'
- name: Build with Maven
run: mvn -B package --file pom.xml