Atualizado
This commit is contained in:
@@ -18,12 +18,20 @@ jobs:
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
# Removido o cache para evitar o erro de timeout que vimos no log
|
||||
|
||||
- name: Instalar Maven
|
||||
run: sudo apt-get update && sudo apt-get install -y maven
|
||||
- name: Corrigir Instalador e Instalar Maven
|
||||
run: |
|
||||
sudo dpkg --configure -a
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y 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)
|
||||
deploy-trigger:
|
||||
|
||||
Reference in New Issue
Block a user