Skip to content

🔀 Merge origin/main into origin/beta #136

🔀 Merge origin/main into origin/beta

🔀 Merge origin/main into origin/beta #136

---
name: Static code analysis
on:
push:
branches:
- main
- beta
- alpha
- dev
pull_request:
branches:
- main
- beta
- alpha
- dev
jobs:
code-analysis:
name: Static code analysis
environment: code-analysis
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup JDK 21
uses: actions/setup-java@v4
with:
java-version: "21"
distribution: "temurin"
cache: maven
- name: Perform static code analysis
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./mvnw -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dgpg.skip -Dsonar.projectKey=lengors_js2pets