Skip to content

Commit

Permalink
Merge pull request #119 from mkobayashime/setup-node-cache-option
Browse files Browse the repository at this point in the history
ci: cache yarn deps with `cache` option of `actions/setup-node`
  • Loading branch information
mkobayashime authored Nov 3, 2023
2 parents f48077c + b1928f4 commit 25d95c3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "18"
- uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
cache: "yarn"
- name: ESLint
run: make lint
- name: Prettier
Expand All @@ -41,10 +38,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "18"
- uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
cache: "yarn"
- name: Simple test
run: make test
- name: Build for E2E
Expand Down

0 comments on commit 25d95c3

Please sign in to comment.