Skip to content

Commit

Permalink
Add build and test workflow with static analysis checks and code cove…
Browse files Browse the repository at this point in the history
…rage
  • Loading branch information
devops-llm-bot[bot] authored Dec 4, 2023
1 parent 2156945 commit f6c3889
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build-autogenerated.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
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 service-center-app/pom.xml

- name: Run tests
run: mvn test --file service-center-app/pom.xml

- name: Static code analysis
run: mvn checkstyle:check

- name: Code coverage
run: mvn jacoco:report

0 comments on commit f6c3889

Please sign in to comment.