Skip to content

Commit

Permalink
Add runner.os to all cache keys
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Stamm <ts@timostamm.de>
  • Loading branch information
timostamm committed Aug 29, 2024
1 parent 013b92d commit c3614ad
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/browserstack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
- uses: actions/cache@v4
with:
path: .turbo
key: connect-es/browserstack/${{ github.sha }}
restore-keys: connect-es/browserstack
key: ${{ runner.os }}/browserstack/${{ github.sha }}
restore-keys: ${{ runner.os }}/browserstack
- name: NPM Install
run: npm ci
- name: Browserstack
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
- uses: actions/cache@v4
with:
path: .turbo
key: connect-es/format/${{ github.sha }}
restore-keys: connect-es/format
key: ${{ runner.os }}/format/${{ github.sha }}
restore-keys: ${{ runner.os }}/format
- name: NPM Install
run: npm ci
- name: Format
Expand All @@ -44,8 +44,8 @@ jobs:
- uses: actions/cache@v4
with:
path: .turbo
key: connect-es/license-header/${{ github.sha }}
restore-keys: connect-es/license-header
key: ${{ runner.os }}/license-header/${{ github.sha }}
restore-keys: ${{ runner.os }}/license-header
- name: NPM Install
run: npm ci
- name: Update license headers
Expand All @@ -62,8 +62,8 @@ jobs:
- uses: actions/cache@v4
with:
path: .turbo
key: connect-es/lint/${{ github.sha }}
restore-keys: connect-es/lint
key: ${{ runner.os }}/lint/${{ github.sha }}
restore-keys: ${{ runner.os }}/lint
- name: NPM Install
run: npm ci
- name: lint
Expand All @@ -78,8 +78,8 @@ jobs:
- uses: actions/cache@v4
with:
path: .turbo
key: connect-es/attw/${{ github.sha }}
restore-keys: connect-es/attw
key: ${{ runner.os }}/attw/${{ github.sha }}
restore-keys: ${{ runner.os }}/attw
- name: NPM Install
run: npm ci
- name: Are the types wrong
Expand All @@ -94,8 +94,8 @@ jobs:
- uses: actions/cache@v4
with:
path: .turbo
key: connect-es/bundle-size/${{ github.sha }}
restore-keys: connect-es/bundle-size
key: ${{ runner.os }}/bundle-size/${{ github.sha }}
restore-keys: ${{ runner.os }}/bundle-size
- name: NPM Install
run: npm ci
- name: Bundle size
Expand All @@ -112,8 +112,8 @@ jobs:
- uses: actions/cache@v4
with:
path: .turbo
key: connect-es/build/${{ github.sha }}
restore-keys: connect-es/build
key: ${{ runner.os }}/build/${{ github.sha }}
restore-keys: ${{ runner.os }}/build
- name: NPM Install
run: npm ci
- name: build
Expand All @@ -136,8 +136,8 @@ jobs:
- uses: actions/cache@v4
with:
path: .turbo
key: connect-es/test/${{ github.sha }}
restore-keys: connect-es/test
key: ${{ runner.os }}/test/${{ github.sha }}
restore-keys: ${{ runner.os }}/test
- name: NPM Install
run: npm ci
- name: Run
Expand All @@ -157,8 +157,8 @@ jobs:
- uses: actions/cache@v4
with:
path: .turbo
key: connect-es/test/${{ github.sha }}
restore-keys: connect-es/test
key: ${{ runner.os }}/test/${{ github.sha }}
restore-keys: ${{ runner.os }}/test
- name: NPM Install
run: npm ci
- name: "Run, excluding @connectrpc/connect-web"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-cloudflare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- uses: actions/cache@v4
with:
path: .turbo
key: connect-es/cloudflare-conformance/${{ github.sha }}
restore-keys: connect-es/cloudflare-conformance
key: ${{ runner.os }}/cloudflare-conformance/${{ github.sha }}
restore-keys: ${{ runner.os }}/cloudflare-conformance
- name: NPM Install
run: npm ci
- name: conformance:server
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-express.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
- uses: actions/cache@v4
with:
path: .turbo
key: connect-es/express-conformance/${{ github.sha }}
restore-keys: connect-es/express-conformance
key: ${{ runner.os }}/express-conformance/${{ github.sha }}
restore-keys: ${{ runner.os }}/express-conformance
- name: NPM Install
run: npm ci
- name: Run
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-fastify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
- uses: actions/cache@v4
with:
path: .turbo
key: connect-es/fastify-conformance/${{ github.sha }}
restore-keys: connect-es/fastify-conformance
key: ${{ runner.os }}/fastify-conformance/${{ github.sha }}
restore-keys: ${{ runner.os }}/fastify-conformance
- name: NPM Install
run: npm ci
- name: Run
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:
- uses: actions/cache@v4
with:
path: .turbo
key: connect-es/node-conformance/${{ github.sha }}
restore-keys: connect-es/node-conformance
key: ${{ runner.os }}/node-conformance/${{ github.sha }}
restore-keys: ${{ runner.os }}/node-conformance
- name: NPM Install
run: npm ci
- name: Run
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/conformance-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
- uses: actions/cache@v4
with:
path: .turbo
key: connect-es/web-conformance/${{ github.sha }}
restore-keys: connect-es/web-conformance
key: ${{ runner.os }}/web-conformance/${{ github.sha }}
restore-keys: ${{ runner.os }}/web-conformance
- name: NPM Install
run: npm ci
- name: Run
Expand All @@ -60,8 +60,8 @@ jobs:
- uses: actions/cache@v4
with:
path: .turbo
key: connect-es/web-conformance/${{ github.sha }}
restore-keys: connect-es/web-conformance
key: ${{ runner.os }}/web-conformance/${{ github.sha }}
restore-keys: ${{ runner.os }}/web-conformance
- name: NPM Install
run: npm ci
- name: Run
Expand Down

0 comments on commit c3614ad

Please sign in to comment.