From e3e5df78933710d70c1a5cf60ce433f71615c3bb Mon Sep 17 00:00:00 2001 From: DominikIwanek Date: Mon, 4 Sep 2023 11:13:12 +0200 Subject: [PATCH] [ACS-5107] - Fix failing unit test on CI --- .github/workflows/pull-request.yml | 4 ++-- projects/aca-shared/src/lib/services/app.service.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 969b9ffc00..649dd507f9 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -90,7 +90,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 with: - fetch-depth: 2 + fetch-depth: 0 - name: node uses: actions/setup-node@v3 @@ -99,7 +99,7 @@ jobs: cache: 'npm' - uses: ./.github/actions/before-install - run: npm ci - - run: npm test ${{ matrix.unit-tests.name }} -- --browsers=ChromeHeadless --watch=false $TEST_OPTS + - run: npm run affected:test -- --browsers=ChromeHeadless --watch=false $TEST_OPTS --base=origin/develop --exclude='content-ce' e2es: needs: [lint, build, unit-tests] diff --git a/projects/aca-shared/src/lib/services/app.service.ts b/projects/aca-shared/src/lib/services/app.service.ts index fc46d3cfbe..b7ee9cb2f3 100644 --- a/projects/aca-shared/src/lib/services/app.service.ts +++ b/projects/aca-shared/src/lib/services/app.service.ts @@ -178,6 +178,7 @@ export class AppService implements OnDestroy { this.contentApi.getRepositoryInformation().subscribe((response: DiscoveryEntry) => { if (response?.entry?.repository) { this.store.dispatch(new SetRepositoryInfoAction(response.entry.repository)); + this.store.dispatch(new SetRepositoryInfoAction(response.entry.repository)); } }); }