Skip to content

Commit

Permalink
ci: cleanup cache workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Feb 9, 2023
1 parent aa5aea1 commit 92bbd2d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 45 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/browserstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,7 @@ jobs:
with:
path: letsencrypt
key: ${{ needs.cert.outputs.cache-key }}
- name: Abort if cert isn't cached
if: ${{ steps.cert.outputs.cache-hit != 'true' }}
uses: actions/github-script@v6
with:
script: core.setFailed('cert cache hit failed')
fail-on-cache-miss: true
- name: Setup node
uses: actions/setup-node@v3
with:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ jobs:
with:
path: dist
key: dist-${{ hashFiles('src/**/*.ts', 'tsconfig/*.json', '.github/workflows/*.yml', 'package-lock.json') }}
- name: Abort if dist isn't cached
if: ${{ steps.dist.outputs.cache-hit != 'true' }}
uses: actions/github-script@v6
with:
script: core.setFailed('dist cache hit failed')
fail-on-cache-miss: true
- name: Prepare distribution
run: node tools/publish-${{ matrix.prepare-script }}
- run: npm publish
Expand Down
42 changes: 7 additions & 35 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,7 @@ jobs:
with:
path: dist
key: ${{ needs.build.outputs.cache-key }}
- name: Abort if dist isn't cached
if: ${{ steps.dist.outputs.cache-hit != 'true' }}
uses: actions/github-script@v6
with:
script: core.setFailed('dist cache hit failed')
fail-on-cache-miss: true
- name: Test (TAP)
run: npm run tap:node
if: ${{ !startsWith(steps.node.outputs.node-version, 'v12') }}
Expand Down Expand Up @@ -113,11 +109,7 @@ jobs:
with:
path: dist
key: ${{ needs.build.outputs.cache-key }}
- name: Abort if dist isn't cached
if: ${{ steps.dist.outputs.cache-hit != 'true' }}
uses: actions/github-script@v6
with:
script: core.setFailed('dist cache hit failed')
fail-on-cache-miss: true
- name: Test Deno Definitions
run: deno check dist/deno/index.ts
- name: Setup node
Expand Down Expand Up @@ -147,11 +139,7 @@ jobs:
with:
path: dist
key: ${{ needs.build.outputs.cache-key }}
- name: Abort if dist isn't cached
if: ${{ steps.dist.outputs.cache-hit != 'true' }}
uses: actions/github-script@v6
with:
script: core.setFailed('dist cache hit failed')
fail-on-cache-miss: true
- name: Setup node
uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -185,11 +173,7 @@ jobs:
with:
path: dist
key: ${{ needs.build.outputs.cache-key }}
- name: Abort if dist isn't cached
if: ${{ steps.dist.outputs.cache-hit != 'true' }}
uses: actions/github-script@v6
with:
script: core.setFailed('dist cache hit failed')
fail-on-cache-miss: true
- name: Run Test Suite
run: npm run tap:workers

Expand All @@ -215,11 +199,7 @@ jobs:
with:
path: dist
key: ${{ needs.build.outputs.cache-key }}
- name: Abort if dist isn't cached
if: ${{ steps.dist.outputs.cache-hit != 'true' }}
uses: actions/github-script@v6
with:
script: core.setFailed('dist cache hit failed')
fail-on-cache-miss: true
- name: Run Test Suite
run: npm run tap:edge-runtime

Expand Down Expand Up @@ -253,11 +233,7 @@ jobs:
with:
path: dist
key: ${{ needs.build.outputs.cache-key }}
- name: Abort if dist isn't cached
if: ${{ steps.dist.outputs.cache-hit != 'true' }}
uses: actions/github-script@v6
with:
script: core.setFailed('dist cache hit failed')
fail-on-cache-miss: true
- name: Run Test Suite
run: npm run tap:browsers
env:
Expand Down Expand Up @@ -285,11 +261,7 @@ jobs:
with:
path: dist
key: ${{ needs.build.outputs.cache-key }}
- name: Abort if dist isn't cached
if: ${{ steps.dist.outputs.cache-hit != 'true' }}
uses: actions/github-script@v6
with:
script: core.setFailed('dist cache hit failed')
fail-on-cache-miss: true
- name: Install Electron
run: npm install --global electron
- name: Run Test Suite
Expand Down

0 comments on commit 92bbd2d

Please sign in to comment.