Skip to content

Commit

Permalink
fix(devops): test in container
Browse files Browse the repository at this point in the history
  • Loading branch information
atakanyasar committed May 1, 2024
1 parent 8adb285 commit 00e33ca
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/backend_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Maven
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- name: Build Docker backend-prod Image
run: docker compose -f docker-compose.yml build db

- name: Run Docker backend-prod Container
run: docker compose -f docker-compose.yml up -d db

- name: Run Tests
run: mvn clean test

- name: Stop Docker backend-prod Container
run: docker compose -f docker-compose.yml down
- name: Test with Maven
run: docker compose -f docker-compose.dev.yml run --rm backend-dev mvn test



0 comments on commit 00e33ca

Please sign in to comment.