From 818dcd26069efed91756401852b17643df5cd5f1 Mon Sep 17 00:00:00 2001 From: carloshra Date: Thu, 26 Feb 2026 23:38:30 +0000 Subject: [PATCH] Atualizar .gitea/workflows/build.yaml --- .gitea/workflows/build.yaml | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 1d61cd3..c5b85f3 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -6,32 +6,16 @@ on: branches: [ "main", "master" ] jobs: - # Job 1: Testes de Unidade testes: runs-on: ubuntu-latest + container: + image: maven:3.9.6-eclipse-temurin-21 # Imagem oficial com tudo pronto steps: - name: Checkout do código uses: actions/checkout@v4 - - name: Configurar JDK 21 - uses: actions/setup-java@v4 - with: - java-version: '21' - distribution: 'temurin' - # Removido o cache para evitar o erro de timeout que vimos no log - - - 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: | - # 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 + run: mvn -B test # Aqui o 'mvn' já vai funcionar direto # Job 2: Trigger da API (Só roda se os testes passarem) deploy-trigger: