Atualizado
This commit is contained in:
@@ -18,12 +18,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: '21'
|
java-version: '21'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
# Removido o cache para evitar o erro de timeout que vimos no log
|
||||||
|
|
||||||
- name: Instalar Maven
|
- name: Corrigir Instalador e Instalar Maven
|
||||||
run: sudo apt-get update && sudo apt-get install -y maven
|
run: |
|
||||||
|
sudo dpkg --configure -a
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y maven
|
||||||
|
|
||||||
- name: Rodar Testes com Maven
|
- name: Rodar Testes com Maven
|
||||||
run: mvn -B test
|
run: |
|
||||||
|
# Se você tiver o arquivo mvnw no projeto, use: chmod +x mvnw && ./mvnw test
|
||||||
|
# Caso contrário, usamos o maven instalado:
|
||||||
|
# mvn -B test
|
||||||
|
chmod +x mvnw && ./mvnw test
|
||||||
|
|
||||||
# Job 2: Trigger da API (Só roda se os testes passarem)
|
# Job 2: Trigger da API (Só roda se os testes passarem)
|
||||||
deploy-trigger:
|
deploy-trigger:
|
||||||
|
|||||||
Reference in New Issue
Block a user