Skip to content

Commit

Permalink
fix: new way
Browse files Browse the repository at this point in the history
  • Loading branch information
olehbairak committed Jan 24, 2024
1 parent cd2b510 commit a138ce3
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 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/*']
test-pattern:
- accounts.test.ts
- addresses.test.ts
Expand All @@ -29,6 +29,16 @@ jobs:
with:
fetch-depth: 0

- name: Cache Docker images
id: cache-docker-images
uses: actions/cache@v3
with:
path: |
/var/lib/docker
key: ${{ runner.os }}-docker-${{ hashFiles('**/docker-compose.yaml') }}
restore-keys: |
${{ runner.os }}-docker-
- name: Setup Node.js
uses: actions/setup-node@v3
with:
Expand All @@ -39,6 +49,7 @@ jobs:
run: |
npm ci --no-audit
npx playwright install --with-deps chromium
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
Expand All @@ -48,14 +59,16 @@ jobs:
- name: Start docker containers
run: |
docker-compose -f "docker-compose.yaml" up -d --build
- name: List running containers
run: docker ps

- name: API tests run (parallel)
run: |
cd packages/integration-tests
npx jest --verbose --testPathPattern=${{ matrix.test-pattern }}
- name: Stop containers
if: always()
run: |
docker-compose -f "docker-compose.yaml" down
docker-compose -f "docker-compose.yaml" down

0 comments on commit a138ce3

Please sign in to comment.