Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
* Define NPM version once in workflow

Signed-off-by: CaptainIRS <[email protected]>
  • Loading branch information
CaptainIRS committed Jul 22, 2022
1 parent c9ac88b commit ff2a2dc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Integration Tests
on:
workflow_call:

env:
NPM_VERSION: 8.15.0

jobs:
fabric-integration-tests:
name: Fabric Integration Tests
Expand All @@ -17,7 +20,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install higher version of NPM
run: npm install -g npm@8.15.0
run: npm install -g npm@${{ env.NPM_VERSION }}
- name: Fabric Integration Test
run: .build/benchmark-integration-test-direct.sh
env:
Expand All @@ -36,7 +39,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install higher version of NPM
run: npm install -g npm@8.15.0
run: npm install -g npm@${{ env.NPM_VERSION }}
- name: Ethereum Integration Test
run: .build/benchmark-integration-test-direct.sh
env:
Expand All @@ -55,7 +58,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install higher version of NPM
run: npm install -g npm@8.15.0
run: npm install -g npm@${{ env.NPM_VERSION }}
- name: Besu Integration Test
run: .build/benchmark-integration-test-direct.sh
env:
Expand All @@ -74,7 +77,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install higher version of NPM
run: npm install -g npm@8.15.0
run: npm install -g npm@${{ env.NPM_VERSION }}
- name: FISCO BCOS Integration Test
run: .build/benchmark-integration-test-direct.sh
env:
Expand All @@ -93,7 +96,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install higher version of NPM
run: npm install -g npm@8.15.0
run: npm install -g npm@${{ env.NPM_VERSION }}
- name: Generator Integration Test
run: .build/benchmark-integration-test-direct.sh
env:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Unit Tests
on:
workflow_call:

env:
NPM_VERSION: 8.15.0

jobs:
unit-tests:
name: Unit Tests
Expand All @@ -17,7 +20,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install higher version of NPM
run: npm install -g npm@8.15.0
run: npm install -g npm@${{ env.NPM_VERSION }}
- name: Check correct usage of Caliper package names
run: ./scripts/check-package-names.sh
- name: Install project dependencies
Expand Down

0 comments on commit ff2a2dc

Please sign in to comment.