Skip to content

chore: remove github actions deprecated #1

chore: remove github actions deprecated

chore: remove github actions deprecated #1

Workflow file for this run

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