diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 3716750c9ae45..2a107d147fd7c 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -41,15 +41,22 @@ jobs: path: ${{ env.CYPRESS_BASELINE_REPO }} - uses: taiga-family/ci/actions/setup/variables@v1.93.0 - uses: taiga-family/ci/actions/setup/node@v1.93.0 + id: node - - name: Share node_modules between current and baseline repos - run: | - cp -r node_modules ${{ env.CYPRESS_BASELINE_REPO }}/node_modules - tree -d -L 1 - tree -d ${{ env.CYPRESS_BASELINE_REPO }} -L 1 + - name: Restore cache for baseline + uses: actions/cache/restore@v4.0.2 + id: baseline_cache + with: + path: ${{ env.CYPRESS_BASELINE_REPO }}/node_modules + key: "${{ runner.os }}-node-${{ steps.node.node-version }}__${{ hashFiles('baseline/package-lock.json') }}" + + - name: Install Dependencies + if: steps.baseline_cache.outputs.cache-hit != 'true' + run: cd ${{ env.CYPRESS_BASELINE_REPO }} && npm i --workspaces --include-workspace-root - name: Run tests for baseline state run: | + ls # TODO: remove before merge cd ${{ env.CYPRESS_BASELINE_REPO }} npx nx component-test demo-cypress cd ../