Update cache keys in test-inputs.yml (#79)

It's always caching. Or DNS. This time it was caching.

A while back, we changed the default cache key prefix from empty-string to `semver` so that our cache key names don't start with a dash, since users found that confusing.

We should have updated these tests accordingly at the time, but we did not. So how did the PR with the change pass?

It used the caches from older runs of the same job which used the old names. When those caches expired and were GC'd by GitHub, the jobs started failing.

This is what broke CI for #77. This PR will fix it.
This commit is contained in:
Predrag Gruevski 2024-07-02 10:47:48 -04:00 committed by GitHub
parent c7306483f6
commit 300d7d49b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -286,9 +286,9 @@ jobs:
path: ${{ github.workspace }}/semver-checks/target/semver-checks/cache path: ${{ github.workspace }}/semver-checks/target/semver-checks/cache
fail-on-cache-miss: true fail-on-cache-miss: true
lookup-only: true lookup-only: true
key: -${{ github.job }} key: semver-${{ github.job }}
restore-keys: | restore-keys: |
-${{ github.job }} semver-${{ github.job }}
- name: Fail if the toolchain used by the action is invalid - name: Fail if the toolchain used by the action is invalid
if: ${{ ! contains(steps.get-cache-key.outputs.cache-matched-key, 'nightly') }} if: ${{ ! contains(steps.get-cache-key.outputs.cache-matched-key, 'nightly') }}
run: | run: |
@ -329,9 +329,9 @@ jobs:
path: ${{ github.workspace }}/semver-checks/target/semver-checks/cache path: ${{ github.workspace }}/semver-checks/target/semver-checks/cache
fail-on-cache-miss: true fail-on-cache-miss: true
lookup-only: true lookup-only: true
key: -${{ github.job }} key: semver-${{ github.job }}
restore-keys: | restore-keys: |
-${{ github.job }} semver-${{ github.job }}
- name: Fail if the toolchain used by the action is invalid - name: Fail if the toolchain used by the action is invalid
if: ${{ ! contains(steps.get-cache-key.outputs.cache-matched-key, 'nightly') }} if: ${{ ! contains(steps.get-cache-key.outputs.cache-matched-key, 'nightly') }}
run: | run: |
@ -372,9 +372,9 @@ jobs:
path: ${{ github.workspace }}/semver-checks/target/semver-checks/cache path: ${{ github.workspace }}/semver-checks/target/semver-checks/cache
fail-on-cache-miss: true fail-on-cache-miss: true
lookup-only: true lookup-only: true
key: -${{ github.job }} key: semver-${{ github.job }}
restore-keys: | restore-keys: |
-${{ github.job }} semver-${{ github.job }}
- name: Fail if the toolchain used by the action is invalid - name: Fail if the toolchain used by the action is invalid
if: ${{ ! contains(steps.get-cache-key.outputs.cache-matched-key, 'beta') }} if: ${{ ! contains(steps.get-cache-key.outputs.cache-matched-key, 'beta') }}
run: | run: |