Add example search query generation #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
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/[email protected] | |
with: | |
mongodb-version: '6.0' | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml |