Skip to content

Commit e5e9fc8

Browse files
susnuxbackportbot[bot]
authored andcommitted
ci: migrate from buildjet to cache action
ci: migrate from buildjet to cache action Buildjet stops their service so we must use the github services. ref: https://buildjet.com/for-github-actions/blog/we-are-shutting-down Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> [skip ci]
1 parent 4f7e863 commit e5e9fc8

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/command-compile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797

9898
steps:
9999
- name: Restore cached git repository
100-
uses: buildjet/cache@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4 # v4.0.2
100+
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
101101
with:
102102
path: .git
103103
key: git-repo

.github/workflows/cypress.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
TESTING=true npm run build --if-present
8686
8787
- name: Save context
88-
uses: buildjet/cache/save@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4 # v4.0.2
88+
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
8989
with:
9090
key: cypress-context-${{ github.run_id }}
9191
path: ./
@@ -232,6 +232,12 @@ jobs:
232232

233233
name: cypress-summary
234234

235+
permissions:
236+
# `actions:write` permission is required to delete caches
237+
# See also: https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#delete-a-github-actions-cache-for-a-repository-using-a-cache-id
238+
actions: write
239+
contents: read
240+
235241
steps:
236242
- name: Summary status
237243
run: if ${{ needs.init.result != 'success' || ( needs.cypress.result != 'success' && needs.cypress.result != 'skipped' ) }}; then exit 1; fi

0 commit comments

Comments
 (0)