diff --git a/.github/workflows/ci-merge-checks.yml b/.github/workflows/ci-merge-checks.yml index a7da5e3fe40..5ab693f0f88 100644 --- a/.github/workflows/ci-merge-checks.yml +++ b/.github/workflows/ci-merge-checks.yml @@ -151,7 +151,7 @@ jobs: run: | ci-scripts/e2e-cypress.sh -s b2b merge_checks_result: - needs: [b2c_e2e_tests, b2c_ssr_e2e_tests, b2b_e2e_tests] + needs: [b2c_e2e_tests, b2c_ssr_e2e_tests, b2b_e2e_tests, ssr_tests] name: MC - Result runs-on: ubuntu-latest if: ${{ always() }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4910fb35ca4..e8dc45ea8ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -216,8 +216,32 @@ jobs: BUILD_NUMBER: ci-build-number-${{ github.event.pull_request.head.sha || github.run_id }} run: | ci-scripts/e2e-cypress.sh -s b2b + ssr_tests: + needs: [no_retries, validate_e2e_execution] + name: SSR Tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup node + uses: actions/setup-node@v2 + with: + node-version: ${{ env.NODE_VERSION }} + - name: Cache node_modules + id: cache-node-modules + uses: actions/cache@v2 + with: + path: | + node_modules + key: nodemodules-${{ github.event.pull_request.base.sha }} + restore-keys: nodemodules-${{ github.event.pull_request.base.sha }} + - name: Package installation + run: npm ci + - name: Build SSR Server + run: npm run build:libs && npm run build && npm run build:ssr:local-http-backend + - name: Run SSR tests + run: npm run test:ssr:ci --verbose build_conclusion: - needs: [no_retries, unit_tests, linting, b2c_e2e_tests, b2c_ssr_e2e_tests, b2b_e2e_tests, sonarqube_scan] + needs: [no_retries, unit_tests, linting, b2c_e2e_tests, b2c_ssr_e2e_tests, b2b_e2e_tests, ssr_tests, sonarqube_scan] name: Build Conclusion runs-on: ubuntu-latest if: ${{ always() }}