Skip to content

Merge pull request #542 from microsoft/dev #680

Merge pull request #542 from microsoft/dev

Merge pull request #542 from microsoft/dev #680

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@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
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@v2
with:
name: jacoco-report
path: target/site/jacoco/