Skip to content

Commit

Permalink
Add build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hwbllmnn committed Nov 13, 2023
1 parent fc8b350 commit 0102d17
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: build and analyse

on: [push]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
java-version: [ 17, 21 ]

steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
cache: 'maven'
- run: mvn -B install --no-transfer-progress
- name: Analyse code and publish to SonarQube 📊
run: mvn -B -Dsonar.password=${{ secrets.SONAR_PASSWORD }} sonar:sonar

0 comments on commit 0102d17

Please sign in to comment.