Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
run: |
cd app
mvn clean verify

# =========================================================
# SONARCLOUD
# =========================================================
Expand All @@ -48,9 +47,11 @@ jobs:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main'
environment: production

steps:
- uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -60,7 +61,7 @@ jobs:
java-version: 17
distribution: zulu

- name: Cache SonarCloud packages
- name: Cache SonarQube packages
uses: actions/cache@v4
with:
path: ~/.sonar/cache
Expand All @@ -74,12 +75,14 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Build and analyze
- name: Build, test and analyze
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
cd app
mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=SOAT-Tech-Challenge-2025_lambda-identification-auth
mvn -B clean verify \
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
-Dsonar.projectKey=soat-tech-challenge-2025_lambda-identification-auth \
-Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml

# =========================================================
# DEPLOY LAMBDA (ORIGINAL, só com depends) ⚠️
Expand Down