Skip to content

Commit

Permalink
fix: new version
Browse files Browse the repository at this point in the history
Separate build Docker container from it's start.
  • Loading branch information
olehbairak committed Jan 19, 2024
1 parent 20fad8a commit ca105d1
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/integration-tests-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
checks: write
strategy:
matrix:
node-version: ['lts/*'] # 18.17.1 or lts/*
node-version: ['lts/*'] # 18.17.1 or lts/*
test-pattern:
- accounts.test.ts
- addresses.test.ts
Expand Down Expand Up @@ -55,9 +55,13 @@ jobs:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Start docker containers
- name: Build Docker container
run: |
docker-compose -f "docker-compose.yaml" up -d --build
docker-compose -f "docker-compose.yaml" build
- name: Start Docker containers
run: |
docker-compose -f "docker-compose.yaml" up -d
- name: List running containers
run: docker ps
Expand All @@ -66,7 +70,8 @@ jobs:
run: |
cd packages/integration-tests
npx jest --verbose --testPathPattern=${{ matrix.test-pattern }}
- name: Stop containers
- name: Stop Docker containers
if: always()
run: |
docker-compose -f "docker-compose.yaml" down

0 comments on commit ca105d1

Please sign in to comment.