Skip to content

Commit

Permalink
check event_name
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Aug 19, 2024
1 parent bdd7318 commit f00bd48
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ on:
required: true
type: string
workflow_dispatch:
inputs:
submodule-cache-key:
required: false
type: string

env:
cwd: ${{github.workspace}}

Expand All @@ -26,19 +23,12 @@ jobs:
strategy:
fail-fast: false
steps:
- uses: actions/cache/restore@v4
name: Initialize ethereum-tests
id: submodules-cache
with:
path: ${{github.workspace}}/packages/ethereum-tests
key: ${{ inputs.submodule-cache-key }}

- if: steps.submodules-cache.outputs.cache-hit != 'true'
- if: github.event_name == 'workflow_dispatch'
uses: actions/checkout@v4
with:
submodules: recursive

- if: steps.submodules-cache.outputs.cache-hit == 'true'
- if: github.event_name == 'workflow_call'
uses: actions/checkout@v4

- uses: actions/cache/restore@v4
Expand All @@ -58,6 +48,13 @@ jobs:
run: npm ci
working-directory: ${{ github.workspace }}

- uses: actions/cache/restore@v4
name: Initialize ethereum-tests
id: submodules-cache
with:
path: ${{github.workspace}}/packages/ethereum-tests
key: ${{ inputs.submodule-cache-key }}

- run: npm run install-browser-deps

- run: npm run test:browser --workspaces --if-present
Expand Down

0 comments on commit f00bd48

Please sign in to comment.