Skip to content

Commit

Permalink
chore: Trying to cache jest on CI (#180)
Browse files Browse the repository at this point in the history
* chore: Trying to cache jest on CI

* Trying something

* Trying something else

* Trying something

* Trying something

* Trying something

* Trying something

* Something

* Finishing touches
  • Loading branch information
patricklafrance committed May 7, 2024
1 parent 604fb58 commit 5a89e35
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
save-always: true

- name: Build packages
run: pnpm ci-build
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
save-always: true

- name: Cache ESLint
uses: actions/cache@v4
Expand All @@ -54,14 +55,23 @@ jobs:
key: ${{ runner.os }}-eslint-${{ github.sha }}
restore-keys: |
${{ runner.os }}-eslint-
save-always: true

- name: Cache Knip
uses: actions/cache@v4
with:
path: node_modules/.cache/knip
key: ${{ runner.os }}-knip-${{ github.sha }}
restore-keys: |
${{ runner.os }}-knip-
path: node_modules/.cache/knip
key: ${{ runner.os }}-knip-${{ github.sha }}
restore-keys: |
${{ runner.os }}-knip-
save-always: true

- name: Cache Jest
uses: actions/cache@v4
with:
path: packages/**/node_modules/.cache/jest
key: ${{ runner.os }}-jest-${{ hashFiles('packages/**/node_modules/.cache/jest') }}
save-always: true

- name: Build packages
run: pnpm ci-build
Expand Down

0 comments on commit 5a89e35

Please sign in to comment.