Skip to content

Commit

Permalink
github CI * unify cache paths to include possible workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
anmiles committed Mar 17, 2024
1 parent 60a5150 commit b5a2505
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: node_modules
path: "**/node_modules"
key: "node_modules-${{ hashFiles('package-lock.json') }}"
lookup-only: true
- run: npm ci
Expand All @@ -36,7 +36,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: node_modules
path: "**/node_modules"
key: "node_modules-${{ hashFiles('package-lock.json') }}"
- run: npm run build:ci

Expand All @@ -50,7 +50,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: node_modules
path: "**/node_modules"
key: "node_modules-${{ hashFiles('package-lock.json') }}"
- run: npm run lint

Expand All @@ -64,11 +64,11 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: node_modules
path: "**/node_modules"
key: "node_modules-${{ hashFiles('package-lock.json') }}"
- uses: actions/cache@v4
with:
path: coverage
path: "**/coverage"
key: "coverage-${{ hashFiles('package-lock.json') }}"
lookup-only: true
- run: npm run test:ci
Expand All @@ -85,10 +85,10 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: node_modules
path: "**/node_modules"
key: "node_modules-${{ hashFiles('package-lock.json') }}"
- uses: actions/cache@v4
with:
path: coverage
path: "**/coverage"
key: "coverage-${{ hashFiles('package-lock.json') }}"
- run: npm run test:report:coverage

0 comments on commit b5a2505

Please sign in to comment.