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 87d9faa
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,22 @@ jobs:
path: ${{ env.CYPRESS_BASELINE_REPO }}
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
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/[email protected]
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 ../
Expand Down

0 comments on commit 87d9faa

Please sign in to comment.