chore: remove github actions deprecated #1
Workflow file for this run
This file contains 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: Build | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
push: | |
branches: | |
- main | |
- develop | |
- feat/* | |
- bug/* | |
- chore/* | |
jobs: | |
sonarcloud-analysis: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '8' # Puedes cambiar la versión según las necesidades de tu proyecto | |
- name: Build with Maven | |
run: mvn clean package # Ajusta el comando según tu sistema de construcción (Maven, Gradle, etc.) | |
- name: SonarCloud Scan | |
uses: sonarsource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Token de GitHub | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Token de SonarCloud |