forked from ethereumjs/ethereumjs-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from ethereumjs/master
Merge lates fork
- Loading branch information
Showing
1,018 changed files
with
65,210 additions
and
56,743 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,71 @@ | ||
name: Browser | ||
on: | ||
push: | ||
branches: [master, develop] | ||
tags: ['*'] | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
workflow_call: | ||
inputs: | ||
dep-cache-key: | ||
required: true | ||
type: string | ||
submodule-cache-key: | ||
required: true | ||
type: string | ||
workflow_dispatch: | ||
inputs: | ||
dep-cache-key: | ||
required: false | ||
default: 'none' | ||
submodule-cache-key: | ||
required: false | ||
default: 'none' | ||
|
||
env: | ||
cwd: ${{github.workspace}} | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-browser | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test-all-browser: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18] | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# We clone the repo and submodules if triggered from work-flow dispatch | ||
- if: inputs.submodule-cache-key == 'none' | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive # necessary for block tests to load ethereum/tests | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
submodules: recursive | ||
|
||
# We restore the code/deps from cache if triggered from workflow_call (i.e. have valid cache key) | ||
- if: inputs.dep-cache-key != 'none' | ||
uses: actions/cache/restore@v4 | ||
id: dep-cache | ||
with: | ||
path: ${{github.workspace}} | ||
key: ${{ inputs.dep-cache-key }} | ||
|
||
- name: Use Node.js 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
node-version: 20 | ||
cache: 'npm' | ||
|
||
- run: npm ci | ||
- name: Install Dependencies (if called from workflow_dispatch) | ||
if: steps.dep-cache.outputs.cache-hit != 'true' | ||
run: npm ci | ||
working-directory: ${{ github.workspace }} | ||
|
||
- if: inputs.submodule-cache-key != 'none' | ||
uses: actions/cache/restore@v4 | ||
name: Restore ethereum-tests from cache if available | ||
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 -w=@ethereumjs/rlp | ||
- run: npm run test:browser -w=@ethereumjs/util | ||
- run: npm run test:browser -w=@ethereumjs/common | ||
- run: npm run test:browser -w=@ethereumjs/trie | ||
- run: npm run test:browser -w=@ethereumjs/tx | ||
- run: npm run test:browser -w=@ethereumjs/block | ||
# No browser tests for devp2p | ||
- run: npm run test:browser -w=@ethereumjs/blockchain | ||
# No browser tests for ethash | ||
- run: npm run test:browser -w=@ethereumjs/wallet | ||
- run: npm run test:browser -w=@ethereumjs/statemanager | ||
- run: npm run test:browser -w=@ethereumjs/evm | ||
- run: npm run test:browser -w=@ethereumjs/vm | ||
- run: npm run test:browser -w=@ethereumjs/verkle | ||
- run: npm run test:browser --workspaces --if-present | ||
|
||
|
||
|
Oops, something went wrong.