From f348e18ce2330159b01ddbf1cc2b67bd9d22512c Mon Sep 17 00:00:00 2001 From: mahula Date: Tue, 18 Jul 2023 22:54:14 +0200 Subject: [PATCH] Revert "make workflows fail to stress test github cache deletion" This reverts commit 09e887fc3c86e21258d7e697daae68c292ddb4d8. --- .../workflows/cleanup-cache-at-pr-closing.yml | 24 ------------------- .github/workflows/test-backend.yml | 2 +- .github/workflows/test-e2e.yml | 2 +- .github/workflows/test-webapp.yml | 2 +- 4 files changed, 3 insertions(+), 27 deletions(-) delete mode 100644 .github/workflows/cleanup-cache-at-pr-closing.yml diff --git a/.github/workflows/cleanup-cache-at-pr-closing.yml b/.github/workflows/cleanup-cache-at-pr-closing.yml deleted file mode 100644 index 2171cc2d5..000000000 --- a/.github/workflows/cleanup-cache-at-pr-closing.yml +++ /dev/null @@ -1,24 +0,0 @@ -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 diff --git a/.github/workflows/test-backend.yml b/.github/workflows/test-backend.yml index a24a9415e..3f7559980 100644 --- a/.github/workflows/test-backend.yml +++ b/.github/workflows/test-backend.yml @@ -92,7 +92,7 @@ jobs: - name: Restore Neo4J cache uses: actions/cache/restore@v3.3.1 with: - path: /tmp/neo4j.tarTEST + path: /tmp/neo4j.tar key: ${{ github.run_id }}-backend-neo4j-cache fail-on-cache-miss: true diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index 059e758bf..81c068ba5 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -61,7 +61,7 @@ jobs: id: cache with: path: | - /opt/cucumber-json-formatterTEST + /opt/cucumber-json-formatter /home/runner/.cache/Cypress /home/runner/work/Ocelot-Social/Ocelot-Social /tmp/images/ diff --git a/.github/workflows/test-webapp.yml b/.github/workflows/test-webapp.yml index 80b93f3f7..364ad4796 100644 --- a/.github/workflows/test-webapp.yml +++ b/.github/workflows/test-webapp.yml @@ -84,7 +84,7 @@ jobs: - name: Restore webapp cache uses: actions/cache/restore@v3.3.1 with: - path: /tmp/webapp.tarTEST + path: /tmp/webapp.tar key: ${{ github.run_id }}-webapp-cache - name: Load Docker Image