Skip to content

Commit

Permalink
build: add test step to docker hub publish
Browse files Browse the repository at this point in the history
  • Loading branch information
micaellobo committed Apr 21, 2024
1 parent 6767561 commit 9005c2e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/docker-hub-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,25 @@ on:
- 'README.md'
- '.insomnium'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
service: [ eureka-service, api-gateway, user-service, auth-service, inventory-service, reviews-service, order-service, notification-service ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Build and Test ${{ matrix.service }}
run: |
mvn -B package --file ${{ matrix.service }}/pom.xml
publish:
needs: test
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down

0 comments on commit 9005c2e

Please sign in to comment.