Skip to content

Commit 639a912

Browse files
committed
ci fix
1 parent 63475e0 commit 639a912

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,21 @@ jobs:
1818
- name: Checkout repository
1919
uses: actions/checkout@v4
2020

21-
- name: Set up Docker Buildx
22-
uses: docker/setup-buildx-action@v3
23-
24-
- name: Set up JDK 17
21+
- name: Set up JDK 17 + Maven cache
2522
uses: actions/setup-java@v4
2623
with:
2724
distribution: temurin
2825
java-version: 17
2926
cache: maven
3027

31-
- name: Make Maven wrapper executable
32-
run: chmod +x mvnw
28+
- name: Enable Docker (needed for Testcontainers)
29+
run: |
30+
sudo systemctl start docker
31+
docker info
3332
34-
- name: Validate Docker availability
35-
run: docker info
33+
- name: Run unit + integration tests
34+
run: mvn -B -ntp verify
3635

37-
- name: Build application image
36+
- name: Build Docker image
3837
run: docker build -t avito-test-app .
3938

40-
- name: Run unit and integration tests
41-
env:
42-
MAVEN_OPTS: "-Dmaven.repo.local=${{ github.workspace }}/.m2/repository"
43-
run: ./mvnw -B -ntp verify

0 commit comments

Comments
 (0)