Skip to content

Commit 93c74d9

Browse files
authored
chore(ci): refactoring CI workflow by following Cypress caching docs (#2333)
1 parent 0444187 commit 93c74d9

File tree

5 files changed

+5
-40
lines changed

5 files changed

+5
-40
lines changed

.github/workflows/test-angular.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,6 @@ jobs:
7373
- name: Website Dev Build (served for Cypress)
7474
run: pnpm angular:build:demo
7575

76-
- name: Cache Cypress binary
77-
uses: actions/cache@v5
78-
with:
79-
path: ~/.cache/Cypress
80-
key: ${{ runner.os }}-cypress-${{ hashFiles('**/pnpm-lock.yaml') }}
81-
restore-keys: |
82-
${{ runner.os }}-cypress-
83-
8476
- name: Ensure Cypress binary is installed
8577
run: pnpm exec cypress install
8678

@@ -91,6 +83,7 @@ jobs:
9183
uses: cypress-io/github-action@v6
9284
with:
9385
install: false
86+
package-manager-cache: false
9487
working-directory: frameworks/angular-slickgrid
9588
# start: pnpm angular:serve
9689
wait-on: 'http://localhost:4300'

.github/workflows/test-aurelia.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,6 @@ jobs:
5858
- name: Website Dev Build (served for Cypress)
5959
run: pnpm aurelia:build:demo
6060

61-
- name: Cache Cypress binary
62-
uses: actions/cache@v5
63-
with:
64-
path: ~/.cache/Cypress
65-
key: ${{ runner.os }}-cypress-${{ hashFiles('**/pnpm-lock.yaml') }}
66-
restore-keys: |
67-
${{ runner.os }}-cypress-
68-
6961
- name: Ensure Cypress binary is installed
7062
run: pnpm exec cypress install
7163

@@ -76,6 +68,7 @@ jobs:
7668
uses: cypress-io/github-action@v6
7769
with:
7870
install: false
71+
package-manager-cache: false
7972
working-directory: demos/aurelia
8073
# start: pnpm aurelia:serve
8174
wait-on: 'http://localhost:7900'

.github/workflows/test-react.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,6 @@ jobs:
5858
- name: Website Dev Build (served for Cypress)
5959
run: pnpm react:build:demo
6060

61-
- name: Cache Cypress binary
62-
uses: actions/cache@v5
63-
with:
64-
path: ~/.cache/Cypress
65-
key: ${{ runner.os }}-cypress-${{ hashFiles('**/pnpm-lock.yaml') }}
66-
restore-keys: |
67-
${{ runner.os }}-cypress-
68-
6961
- name: Ensure Cypress binary is installed
7062
run: pnpm exec cypress install
7163

@@ -76,6 +68,7 @@ jobs:
7668
uses: cypress-io/github-action@v6
7769
with:
7870
install: false
71+
package-manager-cache: false
7972
working-directory: demos/react
8073
wait-on: 'http://localhost:8000'
8174
config-file: test/cypress.config.ts

.github/workflows/test-vanilla.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,6 @@ jobs:
5555
- name: Website Dev Build (served for Cypress)
5656
run: pnpm build:dev
5757

58-
- name: Cache Cypress binary
59-
uses: actions/cache@v5
60-
with:
61-
path: ~/.cache/Cypress
62-
key: ${{ runner.os }}-cypress-${{ hashFiles('**/pnpm-lock.yaml') }}
63-
restore-keys: |
64-
${{ runner.os }}-cypress-
65-
6658
- name: Ensure Cypress binary is installed
6759
run: pnpm exec cypress install
6860

@@ -73,6 +65,7 @@ jobs:
7365
uses: cypress-io/github-action@v6
7466
with:
7567
install: false
68+
package-manager-cache: false
7669
# working-directory: packages/dnd
7770
# start: pnpm vanilla:serve:demo
7871
# start: pnpm serve:vite

.github/workflows/test-vue.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,6 @@ jobs:
5858
- name: Website Dev Build (served for Cypress)
5959
run: pnpm vue:build:demo
6060

61-
- name: Cache Cypress binary
62-
uses: actions/cache@v5
63-
with:
64-
path: ~/.cache/Cypress
65-
key: ${{ runner.os }}-cypress-${{ hashFiles('**/pnpm-lock.yaml') }}
66-
restore-keys: |
67-
${{ runner.os }}-cypress-
68-
6961
- name: Ensure Cypress binary is installed
7062
run: pnpm exec cypress install
7163

@@ -76,6 +68,7 @@ jobs:
7668
uses: cypress-io/github-action@v6
7769
with:
7870
install: false
71+
package-manager-cache: false
7972
working-directory: demos/vue
8073
# start: pnpm vue:serve
8174
wait-on: 'http://localhost:7000'

0 commit comments

Comments
 (0)