-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port the integration test workflow to GitHub Actions (#1376)
* Add Integration Test workflow Signed-off-by: CaptainIRS <36656347+CaptainIRS@users.noreply.github.com> * Add back package-lock to .gitignore (as of now) Signed-off-by: CaptainIRS <36656347+CaptainIRS@users.noreply.github.com> * Add badge in README Signed-off-by: CaptainIRS <36656347+CaptainIRS@users.noreply.github.com> * Split integration tests into jobs Signed-off-by: CaptainIRS <36656347+CaptainIRS@users.noreply.github.com> * Move tests to same file and introduce dependency Signed-off-by: CaptainIRS <36656347+CaptainIRS@users.noreply.github.com> * Remove unnecessary badge Signed-off-by: CaptainIRS <36656347+CaptainIRS@users.noreply.github.com>
- Loading branch information
1 parent
5b96845
commit 2a3839f
Showing
4 changed files
with
124 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
unit-tests: | ||
name: Unit Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [14.x, 16.x] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Check correct usage of Caliper package names | ||
run: ./scripts/check-package-names.sh | ||
- name: Install project dependencies | ||
run: npm install | ||
- name: Bootstrap lerna | ||
run: npm run bootstrap | ||
- name: Check the version consistency of subpackages | ||
run: ./packages/caliper-publish/publish.js version check | ||
- name: Run unit tests | ||
run: npm test | ||
|
||
fabric-integration-tests: | ||
name: Fabric Integration Tests | ||
runs-on: ubuntu-latest | ||
needs: unit-tests | ||
strategy: | ||
matrix: | ||
node-version: [14.x, 16.x] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Fabric Integration Test | ||
run: .build/benchmark-integration-test-direct.sh | ||
env: | ||
BENCHMARK: fabric | ||
|
||
ethereum-integration-tests: | ||
name: Ethereum Integration Tests | ||
runs-on: ubuntu-latest | ||
needs: unit-tests | ||
strategy: | ||
matrix: | ||
node-version: [14.x, 16.x] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Ethereum Integration Test | ||
run: .build/benchmark-integration-test-direct.sh | ||
env: | ||
BENCHMARK: ethereum | ||
|
||
besu-integration-tests: | ||
name: Besu Integration Tests | ||
runs-on: ubuntu-latest | ||
needs: unit-tests | ||
strategy: | ||
matrix: | ||
node-version: [14.x, 16.x] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Besu Integration Test | ||
run: .build/benchmark-integration-test-direct.sh | ||
env: | ||
BENCHMARK: besu | ||
|
||
fisco-bcos-integration-tests: | ||
name: FISCO BCOS Integration Tests | ||
runs-on: ubuntu-latest | ||
needs: unit-tests | ||
strategy: | ||
matrix: | ||
node-version: [14.x, 16.x] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: FISCO BCOS Integration Test | ||
run: .build/benchmark-integration-test-direct.sh | ||
env: | ||
BENCHMARK: fisco-bcos | ||
|
||
generator-integration-tests: | ||
name: Generator Integration Tests | ||
runs-on: ubuntu-latest | ||
needs: unit-tests | ||
strategy: | ||
matrix: | ||
node-version: [14.x, 16.x] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Generator Integration Test | ||
run: .build/benchmark-integration-test-direct.sh | ||
env: | ||
BENCHMARK: generator |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -12,6 +12,8 @@ architecture.pptx | |
output.log | ||
lerna-debug.log | ||
|
||
**/package-lock.json | ||
|
||
.idea/ | ||
**/node_modules/ | ||
**/log/ | ||
|
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