From 99245b9947a9bef0efc3f45177ff0143c12f5788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominique=20J=C3=A4ggi?= <1872195+solaris007@users.noreply.github.com> Date: Tue, 23 Jan 2024 08:36:19 +0100 Subject: [PATCH] chore: re-enable it test on gh actions (#100) --- .github/workflows/main.yaml | 12 +++++++++--- .../spacecat-shared-data-access/test/it/db.test.js | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 190f480a..8e594f97 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -15,13 +15,19 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20.x' - - run: npm ci - - run: npm run lint - - run: npm test + - name: Install Dependencies + run: npm ci + - name: Linting + run: npm run lint + - name: Unit Tests + run: npm test + - name: Integration Tests + run: npm run --prefix packages/spacecat-shared-data-access test:it - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} - name: Semantic Release (Dry Run) + if: github.ref != 'refs/heads/main' run: npm run semantic-release-dry env: GITHUB_TOKEN: ${{ secrets.ADOBE_BOT_GITHUB_TOKEN }} diff --git a/packages/spacecat-shared-data-access/test/it/db.test.js b/packages/spacecat-shared-data-access/test/it/db.test.js index 62e11c67..92d92fd2 100644 --- a/packages/spacecat-shared-data-access/test/it/db.test.js +++ b/packages/spacecat-shared-data-access/test/it/db.test.js @@ -109,7 +109,7 @@ describe('DynamoDB Integration Test', async () => { dynamoDbLocalProcess = dynamoDbLocal.spawn({ port: 8000, sharedDb: true }); - await sleep(1000); // give db time to start up + await sleep(3000); // give db time to start up await generateSampleData( TEST_DA_CONFIG,