make workflows fail to stress test github cache deletion

This commit is contained in:
mahula 2023-07-18 22:32:21 +02:00
parent 2eb507170a
commit 09e887fc3c
4 changed files with 27 additions and 3 deletions

View File

@ -0,0 +1,24 @@
name: ocelot.social cache cleanup on pr closing
on:
pull_request:
types:
- closed
jobs:
clean-branch-cache:
name: Clean branch cache
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout code
uses: actions/checkout@v3
- name:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh extension install actions/gh-actions-cache
gh actions-cache list --branch TODO:this_current_branch --order desc --sort created-at
# gh actions-cache delete -R Ocelot-Social-Community/Ocelot-Social --confirm

View File

@ -92,7 +92,7 @@ jobs:
- name: Restore Neo4J cache
uses: actions/cache/restore@v3.3.1
with:
path: /tmp/neo4j.tar
path: /tmp/neo4j.tarTEST
key: ${{ github.run_id }}-backend-neo4j-cache
fail-on-cache-miss: true

View File

@ -61,7 +61,7 @@ jobs:
id: cache
with:
path: |
/opt/cucumber-json-formatter
/opt/cucumber-json-formatterTEST
/home/runner/.cache/Cypress
/home/runner/work/Ocelot-Social/Ocelot-Social
/tmp/images/

View File

@ -84,7 +84,7 @@ jobs:
- name: Restore webapp cache
uses: actions/cache/restore@v3.3.1
with:
path: /tmp/webapp.tar
path: /tmp/webapp.tarTEST
key: ${{ github.run_id }}-webapp-cache
- name: Load Docker Image