Skip to content

Commit

Permalink
fixup! Chore(ci): Clear cache after testing
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Sep 30, 2024
1 parent f0ba8b9 commit 9d1ad04
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ env:
NX_BRANCH: ${{ github.event.number || github.ref_name }}
NX_VERBOSE_LOGGING: true
NX_NO_CLOUD: true
CACHE_KEY: repository-cache-key-${{ github.run_id }}

jobs:
install-build:
Expand All @@ -34,11 +35,7 @@ jobs:
uses: actions/cache/save@v4
with:
path: ./
key: repository-builds-cache-${{ hashFiles('.*') }}

- name: Save Cache Key
id: save-cache-key
run: echo "cache-key=${{ steps.save-repository-cache.outputs.cache-key }}" >> $GITHUB_ENV
key: env.CACHE_KEY

lint:
name: 📐 Code Linting
Expand All @@ -54,7 +51,7 @@ jobs:
id: restore-repository-cache
with:
path: ./
key: repository-builds-cache-${{ hashFiles('.*') }}
key: env.CACHE_KEY

- name: Setup Node
uses: ./.github/actions/setup-node
Expand All @@ -76,7 +73,7 @@ jobs:
id: restore-repository-cache
with:
path: ./
key: repository-builds-cache-${{ hashFiles('.*') }}
key: env.CACHE_KEY

- name: Setup Node
uses: ./.github/actions/setup-node
Expand Down Expand Up @@ -145,7 +142,7 @@ jobs:
id: restore-repository-cache
with:
path: ./
key: repository-builds-cache-${{ hashFiles('**/build') }}
key: env.CACHE_KEY

- name: Setup Node
uses: ./.github/actions/setup-node
Expand Down

0 comments on commit 9d1ad04

Please sign in to comment.