Skip to content

Commit

Permalink
feat: implement caching for yarn in all workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
bmstefanski committed Dec 29, 2023
1 parent 881b986 commit c399000
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ jobs:
with:
node-version: "${{ env.node_version }}"

- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install --frozen-lockfile --prefer-offline

- name: Licenses check
run: npx --yes license-checker-rseidelsohn --production --excludePrivatePackages --onlyAllow "MIT;Apache;AAL;BSD;Artistic;CC0;ISC;ISCL;PostgreSQL License;Public Domain;Unlicense;UPL;W3C;WTFPL;Python;CC-;BlueOak"
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/nextjs_bundle_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@ jobs:
with:
node-version: "${{ env.node_version }}"

- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install --frozen-lockfile --prefer-offline

- name: Restore next build
uses: actions/cache@v3
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ jobs:
with:
node-version: "${{ env.node_version }}"

- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install --frozen-lockfile --prefer-offline
- name: Install Playwright Browsers
run: yarn playwright install
- name: Run Playwright tests
Expand Down

0 comments on commit c399000

Please sign in to comment.