Skip to content

Commit

Permalink
ci: move cache to toplevel
Browse files Browse the repository at this point in the history
  • Loading branch information
belgattitude committed May 19, 2022
1 parent 6febbb3 commit 8987cde
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci-e2e-nextjs-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ jobs:
${{ github.workspace }}/apps/nextjs-app/.next/cache
${{ github.workspace }}/.cache
${{ github.workspace }}/**/tsconfig.tsbuildinfo
${{ github.workspace }}/**/.eslintcache
key: ${{ runner.os }}-nextjs-app-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('apps/nextjs-app/src/**.[jt]sx?', 'apps/nextjs-app/src/**.json') }}
restore-keys: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/ci-nextjs-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ jobs:
${{ github.workspace }}/apps/nextjs-app/.next/cache
${{ github.workspace }}/.cache
${{ github.workspace }}/**/tsconfig.tsbuildinfo
${{ github.workspace }}/**/.eslintcache
key: ${{ runner.os }}-nextjs-nextjs-app-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('apps/nextjs-app/src/**.[jt]sx?', 'apps/nextjs-app/src/**.json') }}
restore-keys: |
Expand All @@ -85,7 +84,7 @@ jobs:
- name: Linter
working-directory: apps/nextjs-app
run: |
yarn lint --cache
yarn lint
- name: Unit tests
working-directory: apps/nextjs-app
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/ci-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ jobs:
path: |
${{ github.workspace }}/.cache
${{ github.workspace }}/**/tsconfig.tsbuildinfo
${{ github.workspace }}/**/.eslintcache
key: ${{ runner.os }}-packages-cache-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('packages/**.[jt]sx?', 'packages/**.json') }}
restore-keys: |
Expand All @@ -86,7 +85,7 @@ jobs:
# Lint packages that have changed (--include & --since)
- name: Linter
run: |
yarn workspaces foreach -tv --include '@your-org/*' --since=origin/main --recursive run lint --cache
yarn workspaces foreach -tv --include '@your-org/*' --since=origin/main --recursive run lint
yarn workspaces foreach -tv --include '@your-org/*' --since=origin/main --recursive run lint-styles
# Test packages that have changed (--include & --since)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-remix-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
- name: Linter
working-directory: apps/remix-app
run: |
yarn lint --cache
yarn lint
yarn lint-styles
- name: Unit tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-vite-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
- name: Linter
working-directory: apps/vite-app
run: |
yarn lint --cache
yarn lint
- name: Unit tests
working-directory: apps/vite-app
Expand Down

0 comments on commit 8987cde

Please sign in to comment.