Updated Divvy Diary logo to use SVG #7507
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| build: | |
| name: Maven Build | |
| if: github.ref != 'refs/heads/master' || github.repository != 'portfolio-performance/portfolio' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Cache Maven repository | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.m2/repository | |
| ~/.sonar/cache | |
| key: ${{ runner.os }}-mvn | |
| restore-keys: | | |
| ${{ runner.os }}-mvn- | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 21 | |
| distribution: zulu | |
| - name: Set up Maven | |
| uses: stCarolas/setup-maven@v5 | |
| with: | |
| maven-version: 3.9.11 | |
| - name: Build with Maven | |
| run: | | |
| mvn verify \ | |
| --batch-mode \ | |
| --file portfolio-app/pom.xml | |
| build-analyze: | |
| name: Maven Build + Sonar Analysis | |
| if: github.ref == 'refs/heads/master' && github.repository == 'portfolio-performance/portfolio' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Cache Maven repository | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.m2/repository | |
| ~/.sonar/cache | |
| key: ${{ runner.os }}-mvn | |
| restore-keys: | | |
| ${{ runner.os }}-mvn- | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 21 | |
| distribution: zulu | |
| - name: Set up Maven | |
| uses: stCarolas/setup-maven@v5 | |
| with: | |
| maven-version: 3.9.11 | |
| - name: Build with Maven | |
| run: | | |
| mvn verify sonar:sonar \ | |
| --batch-mode \ | |
| -Dsonar.login=${{ secrets.SONAR_TOKEN }} \ | |
| --file portfolio-app/pom.xml | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |