Skip to content

Merge pull request #574 from microsoft/tvaron3/kafkaRelease #752

Merge pull request #574 from microsoft/tvaron3/kafkaRelease

Merge pull request #574 from microsoft/tvaron3/kafkaRelease #752

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Run Unit Tests
run: mvn clean test
- name: Run Integration Test
shell: pwsh
run: ./src/docker/startup.ps1
if: github.ref == 'refs/heads/main'
- name: Upload JaCoCo coverage report
uses: actions/upload-artifact@v3
with:
name: jacoco-report
path: target/site/jacoco/