Skip to content

Commit

Permalink
Update CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
v-yussupov committed Oct 28, 2023
1 parent 2cf945c commit 5df1bd1
Showing 1 changed file with 41 additions and 4 deletions.
45 changes: 41 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,56 @@
name: CI

on: [push]
on: [ push ]

jobs:
build:
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@v3
uses: actions/setup-java@v1
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
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

0 comments on commit 5df1bd1

Please sign in to comment.