Skip to content

Commit

Permalink
ci: use short lived cache
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyshlyaev177 committed Sep 19, 2024
1 parent a046d30 commit 964e4d4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
./packages/example-nextjs14/.next
./packages/example-nextjs15/package.json
./packages/example-nextjs15/.next
key: modules-2-${{ github.sha }}
key: modules-2-${{ github.sha }}-${{ github.run_id }}

testint:
needs: [build]
Expand Down Expand Up @@ -139,7 +139,7 @@ jobs:
./packages/example-nextjs14/.next
./packages/example-nextjs15/package.json
./packages/example-nextjs15/.next
key: modules-2-${{ github.sha }}
key: modules-2-${{ github.sha }}-${{ github.run_id }}

- name: Run Playwright tests
run: |
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:
./packages/example-nextjs14/.next
./packages/example-nextjs15/package.json
./packages/example-nextjs15/.next
key: modules-2-${{ github.sha }}
key: modules-2-${{ github.sha }}-${{ github.run_id }}

- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
Expand All @@ -213,9 +213,9 @@ jobs:

- name: clear cache
# run: gh cache delete modules-2-${{ github.sha }} --confirm
run: |
curl \
-X DELETE \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.GH_TOKEN }}" \
https://api.github.com/repos/asmyshlyaev177/state-in-url/actions/caches/modules-2-${{ github.sha }}
# run: |
# curl \
# -X DELETE \
# -H "Accept: application/vnd.github.v3+json" \
# -H "Authorization: token ${{ secrets.GH_TOKEN }}" \
# https://api.github.com/repos/asmyshlyaev177/state-in-url/actions/caches/modules-2-${{ github.sha }}

0 comments on commit 964e4d4

Please sign in to comment.