Skip to content

Commit

Permalink
refactor: dont share node_modules between baseline and current repos
Browse files Browse the repository at this point in the history
  • Loading branch information
nsbarsukov committed Oct 3, 2024
1 parent fcbb395 commit eb9c1e5
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,16 @@ jobs:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]

- 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/[email protected]
id: baseline_cache
with:
path: ${{ env.CYPRESS_BASELINE_REPO }}/node_modules
key: "${{ runner.os }}-node-${{ inputs.node-version }}__${{ hashFiles('baseline/package-lock.json') }}"

- name: Install Dependencies
if: steps.baseline_cache.outputs.cache-hit != 'true'
run: npm i --workspaces --include-workspace-root

- name: Run tests for baseline state
run: |
Expand Down

0 comments on commit eb9c1e5

Please sign in to comment.