Skip to content

Commit 8556484

Browse files
committed
chore: adiciona job de testes automatizados na pipeline
Job `test` roda em paralelo com `validate`: setup Java 21 (temurin), cache Gradle, `./gradlew test` com TestContainers (Docker disponível no runner), publica relatório HTML como artefato em caso de falha. Programado em par com: Claude IA
1 parent 4f92d59 commit 8556484

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/docker-compose-validate.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,29 @@ on:
1818
paths: *watched-paths
1919

2020
jobs:
21+
test:
22+
runs-on: ubuntu-latest
23+
timeout-minutes: 15
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- name: Set up Java 21
28+
uses: actions/setup-java@v4
29+
with:
30+
java-version: '21'
31+
distribution: 'temurin'
32+
cache: 'gradle'
33+
34+
- name: Run tests
35+
run: ./gradlew test
36+
37+
- name: Publish test report
38+
if: always()
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: test-report
42+
path: build/reports/tests/test/
43+
2144
validate:
2245
runs-on: ubuntu-latest
2346
timeout-minutes: 20

0 commit comments

Comments
 (0)