Skip to content

Commit

Permalink
ci: improving dependecies cache mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardoooxd committed Jun 9, 2024
1 parent faa9170 commit f0beb42
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,14 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: ${{ vars.NODE_VERSION }}
- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Cache pnpm store
id: pnpm-cache
uses: actions/cache@v3
- name: Use Node.js ${{ vars.NODE_VERSION }}
uses: actions/setup-node@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install pnpm
run: npm install -g pnpm
node-version: ${{ vars.NODE_VERSION }}
cache: 'pnpm'

- name: Install project dependencies
run: pnpm install
Expand Down

0 comments on commit f0beb42

Please sign in to comment.