Skip to content

Commit

Permalink
try building all packages so karma doesn't error on trying to resolve…
Browse files Browse the repository at this point in the history
… dist.browser
  • Loading branch information
ryanio committed Aug 10, 2021
1 parent 539338d commit 289f878
Show file tree
Hide file tree
Showing 12 changed files with 127 additions and 160 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/block-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,14 @@ jobs:
- name: Update to npm v7 for workspaces support
run: npm i -g npm@7

# Installs root dependencies,
# ignoring postinstall script to build all packages.
- run: npm install --ignore-scripts
if: steps.cache.outputs.cache-hit != 'true'
# Installs dependencies and builds all packages (if cache hit failed)
- run: npm install
if: steps.cache.outputs.cache-hit == 'false'
working-directory: ${{github.workspace}}

# Builds current package and the ones it depends from.
- run: npm run build --workspace=@ethereumjs/block
working-directory: ${{github.workspace}}

- name: Build deps used in tests (for karma)
run: npm run build --workspace=@ethereumjs/common
# Builds fresh packages (if cache hit succeeded)
- run: npm run build --workspaces
if: steps.cache.outputs.cache-hit == 'true'
working-directory: ${{github.workspace}}

- run: npm run coverage
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/blockchain-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,14 @@ jobs:
- name: Update to npm v7 for workspaces support
run: npm i -g npm@7

# Installs root dependencies,
# ignoring postinstall script to build all packages.
- run: npm install --ignore-scripts
if: steps.cache.outputs.cache-hit != 'true'
working-directory: ${{github.workspace}}

# Builds current package and the ones it depends from.
- run: npm run build --workspace=@ethereumjs/blockchain
# Installs dependencies and builds all packages (if cache hit failed)
- run: npm install
if: steps.cache.outputs.cache-hit == 'false'
working-directory: ${{github.workspace}}

- name: Build deps used in tests (for karma)
run: npm run build --workspace=@ethereumjs/block --workspace=@ethereumjs/common
# Builds fresh packages (if cache hit succeeded)
- run: npm run build --workspaces
if: steps.cache.outputs.cache-hit == 'true'
working-directory: ${{github.workspace}}

- run: npm run coverage
Expand Down
28 changes: 12 additions & 16 deletions .github/workflows/client-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,14 @@ jobs:
- name: Use npm v7 for workspaces support
run: npm i -g npm@7

# Installs root dependencies,
# ignoring postinstall script to build all packages.
- run: npm install --ignore-scripts
if: steps.cache.outputs.cache-hit != 'true'
# Installs dependencies and builds all packages (if cache hit failed)
- run: npm install
if: steps.cache.outputs.cache-hit == 'false'
working-directory: ${{github.workspace}}

# Builds current package and the ones it depends from.
- run: npm run build --workspace=@ethereumjs/client
working-directory: ${{github.workspace}}

- name: Build deps used in tests (for karma)
run: npm run build --workspace=@ethereumjs/common
# Builds fresh packages (if cache hit succeeded)
- run: npm run build --workspaces
if: steps.cache.outputs.cache-hit == 'true'
working-directory: ${{github.workspace}}

- run: npm run coverage
Expand Down Expand Up @@ -86,14 +82,14 @@ jobs:
key: Client-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
path: '**/node_modules'

# Installs root dependencies,
# ignoring postinstall script to build all packages.
- run: npm install --ignore-scripts
if: steps.cache.outputs.cache-hit != 'true'
# Installs dependencies and builds all packages (if cache hit failed)
- run: npm install
if: steps.cache.outputs.cache-hit == 'false'
working-directory: ${{github.workspace}}

# Builds current package and the ones it depends from.
- run: npm run build --workspace=@ethereumjs/client
# Builds fresh packages (if cache hit succeeded)
- run: npm run build --workspaces
if: steps.cache.outputs.cache-hit == 'true'
working-directory: ${{github.workspace}}

- run: npm run test:cli -- --network=${{matrix.network}} --syncmode=${{matrix.syncmode}} --transports rlpx
16 changes: 6 additions & 10 deletions .github/workflows/common-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,14 @@ jobs:
- name: Use npm v7 for workspaces support
run: npm i -g npm@7

# Installs root dependencies,
# ignoring postinstall script to build all packages.
- run: npm install --ignore-scripts
if: steps.cache.outputs.cache-hit != 'true'
# Installs dependencies and builds all packages (if cache hit failed)
- run: npm install
if: steps.cache.outputs.cache-hit == 'false'
working-directory: ${{github.workspace}}

# Builds current package and the ones it depends from.
- run: npm run build --workspace=@ethereumjs/common
working-directory: ${{github.workspace}}

- name: Build deps used in tests (for karma)
run: npm run build --workspace=ethereumjs-util
# Builds fresh packages (if cache hit succeeded)
- run: npm run build --workspaces
if: steps.cache.outputs.cache-hit == 'true'
working-directory: ${{github.workspace}}

- run: npm run coverage
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/devp2p-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ jobs:
- name: Use npm v7 for workspaces support
run: npm i -g npm@7

# Installs root dependencies,
# ignoring postinstall script to build all packages.
- run: npm install --ignore-scripts
if: steps.cache.outputs.cache-hit != 'true'
# Installs dependencies and builds all packages (if cache hit failed)
- run: npm install
if: steps.cache.outputs.cache-hit == 'false'
working-directory: ${{github.workspace}}

# Builds current package and the ones it depends from.
- run: npm run build --workspace=@ethereumjs/devp2p
# Builds fresh packages (if cache hit succeeded)
- run: npm run build --workspaces
if: steps.cache.outputs.cache-hit == 'true'
working-directory: ${{github.workspace}}

- run: npm run coverage
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ethash-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ jobs:
- name: Use npm v7 for workspaces support
run: npm i -g npm@7

# Installs root dependencies,
# ignoring postinstall script to build all packages.
- run: npm install --ignore-scripts
if: steps.cache.outputs.cache-hit != 'true'
# Installs dependencies and builds all packages (if cache hit failed)
- run: npm install
if: steps.cache.outputs.cache-hit == 'false'
working-directory: ${{github.workspace}}

# Builds current package and the ones it depends from.
- run: npm run build --workspace=@ethereumjs/ethash
# Builds fresh packages (if cache hit succeeded)
- run: npm run build --workspaces
if: steps.cache.outputs.cache-hit == 'true'
working-directory: ${{github.workspace}}

- run: npm run coverage
Expand Down
28 changes: 12 additions & 16 deletions .github/workflows/trie-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,14 @@ jobs:
- name: Update to npm v7 for workspaces support
run: npm i -g npm@7

# Installs root dependencies,
# ignoring postinstall script to build all packages.
- run: npm install --ignore-scripts
if: steps.cache.outputs.cache-hit != 'true'
# Installs dependencies and builds all packages (if cache hit failed)
- run: npm install
if: steps.cache.outputs.cache-hit == 'false'
working-directory: ${{github.workspace}}

# Builds current package and the ones it depends from.
- run: npm run build --workspace=merkle-patricia-tree
working-directory: ${{github.workspace}}

- name: Build deps used in tests (for karma)
run: npm run build --workspace=ethereumjs-util
# Builds fresh packages (if cache hit succeeded)
- run: npm run build --workspaces
if: steps.cache.outputs.cache-hit == 'true'
working-directory: ${{github.workspace}}

- run: npm run coverage
Expand Down Expand Up @@ -84,14 +80,14 @@ jobs:
- name: Update to npm v7 for workspaces support
run: npm i -g npm@7

# Installs root dependencies,
# ignoring postinstall script to build all packages.
- run: npm install --ignore-scripts
if: steps.cache.outputs.cache-hit != 'true'
# Installs dependencies and builds all packages (if cache hit failed)
- run: npm install
if: steps.cache.outputs.cache-hit == 'false'
working-directory: ${{github.workspace}}

# Builds current package and the ones it depends from.
- run: npm run build --workspace=merkle-patricia-tree
# Builds fresh packages (if cache hit succeeded)
- run: npm run build --workspaces
if: steps.cache.outputs.cache-hit == 'true'
working-directory: ${{github.workspace}}

- run: npm run benchmarks | tee output.txt
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/tx-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,14 @@ jobs:
- name: Update to npm v7 for workspaces support
run: npm i -g npm@7

# Installs root dependencies,
# ignoring postinstall script to build all packages.
- run: npm install --ignore-scripts
if: steps.cache.outputs.cache-hit != 'true'
# Installs dependencies and builds all packages (if cache hit failed)
- run: npm install
if: steps.cache.outputs.cache-hit == 'false'
working-directory: ${{github.workspace}}

# Builds current package and the ones it depends from.
- run: npm run build --workspace=@ethereumjs/tx
working-directory: ${{github.workspace}}

- name: Build deps used in tests (for karma)
run: npm run build --workspace=@ethereumjs/common
# Builds fresh packages (if cache hit succeeded)
- run: npm run build --workspaces
if: steps.cache.outputs.cache-hit == 'true'
working-directory: ${{github.workspace}}

- run: npm run coverage
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/util-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ jobs:
- name: Update to npm v7 for workspaces support
run: npm i -g npm@7

# Installs root dependencies,
# ignoring postinstall script to build all packages.
- run: npm install --ignore-scripts
if: steps.cache.outputs.cache-hit != 'true'
# Installs dependencies and builds all packages (if cache hit failed)
- run: npm install
if: steps.cache.outputs.cache-hit == 'false'
working-directory: ${{github.workspace}}

# Builds current package and the ones it depends from.
- run: npm run build --workspace=ethereumjs-util
# Builds fresh packages (if cache hit succeeded)
- run: npm run build --workspaces
if: steps.cache.outputs.cache-hit == 'true'
working-directory: ${{github.workspace}}

- run: npm run coverage
Expand Down
52 changes: 24 additions & 28 deletions .github/workflows/vm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,14 @@ jobs:
key: VM-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
path: '**/node_modules'

# Installs root dependencies,
# ignoring postinstall script to build all packages.
- run: npm install --ignore-scripts
if: steps.cache.outputs.cache-hit != 'true'
# Installs dependencies and builds all packages (if cache hit failed)
- run: npm install
if: steps.cache.outputs.cache-hit == 'false'
working-directory: ${{github.workspace}}

# Builds current package and the ones it depends from.
- run: npm run build --workspace=@ethereumjs/vm
working-directory: ${{github.workspace}}

- name: Build deps used in tests (for karma)
run: npm run build --workspace=@ethereumjs/tx
# Builds fresh packages (if cache hit succeeded)
- run: npm run build --workspaces
if: steps.cache.outputs.cache-hit == 'true'
working-directory: ${{github.workspace}}

- run: npm run coverage
Expand Down Expand Up @@ -73,14 +69,14 @@ jobs:
key: VM-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
path: '**/node_modules'

# Installs root dependencies,
# ignoring postinstall script to build all packages.
- run: npm install --ignore-scripts
if: steps.cache.outputs.cache-hit != 'true'
# Installs dependencies and builds all packages (if cache hit failed)
- run: npm install
if: steps.cache.outputs.cache-hit == 'false'
working-directory: ${{github.workspace}}

# Builds current package and the ones it depends from.
- run: npm run build --workspace=@ethereumjs/vm
# Builds fresh packages (if cache hit succeeded)
- run: npm run build --workspaces
if: steps.cache.outputs.cache-hit == 'true'
working-directory: ${{github.workspace}}

- run: npm run test:state:selectedForks
Expand All @@ -102,14 +98,14 @@ jobs:
key: VM-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
path: '**/node_modules'

# Installs root dependencies,
# ignoring postinstall script to build all packages.
- run: npm install --ignore-scripts
if: steps.cache.outputs.cache-hit != 'true'
# Installs dependencies and builds all packages (if cache hit failed)
- run: npm install
if: steps.cache.outputs.cache-hit == 'false'
working-directory: ${{github.workspace}}

# Builds current package and the ones it depends from.
- run: npm run build --workspace=@ethereumjs/vm
# Builds fresh packages (if cache hit succeeded)
- run: npm run build --workspaces
if: steps.cache.outputs.cache-hit == 'true'
working-directory: ${{github.workspace}}

- run: npm run test:blockchain
Expand All @@ -134,14 +130,14 @@ jobs:
- name: Update to npm v7 for workspaces support
run: npm i -g npm@7

# Installs root dependencies,
# ignoring postinstall script to build all packages.
- run: npm install --ignore-scripts
if: steps.cache.outputs.cache-hit != 'true'
# Installs dependencies and builds all packages (if cache hit failed)
- run: npm install
if: steps.cache.outputs.cache-hit == 'false'
working-directory: ${{github.workspace}}

# Builds current package and the ones it depends from.
- run: npm run build --workspace=@ethereumjs/vm
# Builds fresh packages (if cache hit succeeded)
- run: npm run build --workspaces
if: steps.cache.outputs.cache-hit == 'true'
working-directory: ${{github.workspace}}

- run: npm run build:benchmarks
Expand Down
Loading

0 comments on commit 289f878

Please sign in to comment.