diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index ab7b2f3..b0ed343 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -4,7 +4,7 @@ on: push jobs: build: - runs-on: ubuntu-latest + runs-on: self-hosted steps: - name: Download repository uses: actions/checkout@v2 @@ -50,9 +50,20 @@ jobs: qa: needs: test runs-on: ubuntu-latest + continue-on-error: true steps: - - name: qa - run: echo "Ejecutando anĂ¡lisis de calidad!" + - name: Descargar repositorio + uses: actions/checkout@v2 + - name: Instalar JDK 11 + uses: actions/setup-java@v2 + with: + java-version: "11" + distribution: "adopt" + - name: Construir con Maven + run: mvn clean package -DskipTests + - name: Revisar la calidad con Sonarqube + run: | + mvn sonar:sonar -Dsonar.host.url=http://localhost:9000 -Dsonar.qualitygate.wait=true -Dsonar.login=admin -Dsonar.password=admin1 deploy: needs: qa