Skip to content

Commit

Permalink
testing approaches for starting DB
Browse files Browse the repository at this point in the history
  • Loading branch information
NadicaUzunova authored Jan 19, 2024
1 parent 979a5e0 commit a65e598
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions .github/workflows/test_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ on:

jobs:

start_database:
build_backend:
name: Start Postgres DB
runs-on: ubuntu-latest
services:
postgres:
Expand All @@ -23,27 +24,25 @@ jobs:
--health-retries 5
ports:
- 5432:5432

steps:
- name: Checkout repository
uses: actions/checkout@v3

build_backend:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '20'
cache: maven

- name: Build with Maven
run: mvn -B package --file pom.xml -DskipTests
working-directory: backend

# - name: Run tests
# run: mvn -B test
# working-directory: backend
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '20'
cache: maven

- name: Build with Maven
run: mvn -B package --file pom.xml -DskipTests
working-directory: backend

# - name: Run tests
# run: mvn -B test
# working-directory: backend

build_frontend:
runs-on: ubuntu-latest
Expand Down

0 comments on commit a65e598

Please sign in to comment.