Skip to content

feat(auth): create login endpoint and handle related exceptions #40

feat(auth): create login endpoint and handle related exceptions

feat(auth): create login endpoint and handle related exceptions #40

Workflow file for this run

name: SonarCloud
on:
push:
branches:
- develop
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: SonarCloud Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Cache Sonar packages
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: |
~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven
- name: Start Docker Compose
run: docker compose up -d
- name: SonarCloud Scan
run: |
mvn verify sonar:sonar -Dspring.profiles.active=dev \
-Dsonar.projectKey=felipemelozx_TrackMoney \
-Dsonar.organization=felipemelozx-trackmoney \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.login=${{ secrets.SONAR_TOKEN }} \
-Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml \
-Dsonar.java.checkstyle.reportPaths=target/checkstyle-result.xml
- name: Stop Docker Compose
if: always()
run: docker compose down