From 9e11cc30096ccc5e03233275a0aae66d72e57d36 Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Tue, 10 Oct 2023 12:13:50 +0300 Subject: [PATCH 1/4] Add github actions workflow for test-runner --- .github/workflows/ci.yml | 32 +++++++++++++++++++++++++++++++ .github/workflows/test-report.yml | 30 +++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/test-report.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..c4154b2e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI +run-name: 'Run tests: Commit ${{ github.sha }}' + +on: + pull_request: + types: [opened, reopened, edited] + branches: + - master + workflow_dispatch: + +jobs: + linux-test-runner: + name: Linux Test Runner + timeout-minutes: 30 + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + - uses: actions/setup-node@v3 + with: + node-version: 18.17.1 + - name: Setup configs and install deps + run: ./scripts/setup.sh -u + - name: Run tests + run: npm test -- -- --reporter=json --reporter-option output=test-report.json + - uses: actions/upload-artifact@v3 + if: success() || failure() + with: + name: test-results + path: test-report.json diff --git a/.github/workflows/test-report.yml b/.github/workflows/test-report.yml new file mode 100644 index 00000000..925aaf43 --- /dev/null +++ b/.github/workflows/test-report.yml @@ -0,0 +1,30 @@ +name: 'Test Report' +run-name: 'Test Report: Commit ${{ github.sha }}' + +on: + workflow_run: + workflows: ['CI'] + types: + - completed + +permissions: + contents: read + actions: read + checks: write + +jobs: + web-page-report: + name: Web Page Report + runs-on: ubuntu-22.04 + steps: + - uses: dorny/test-reporter@v1 + id: test-results + with: + artifact: test-results + name: Mocha Tests + path: test-report.json + reporter: mocha-json + - name: Test Report Summary + run: | + echo "### Test Report page is ready! :rocket:" >> $GITHUB_STEP_SUMMARY + echo "And available at the following [Link](${{ steps.test-results.outputs.url_html }})" >> $GITHUB_STEP_SUMMARY From 45f950320dd15708fb393c11c527c13ad8f90846 Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Tue, 17 Oct 2023 08:46:17 +0300 Subject: [PATCH 2/4] Bump version up to v4.13.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8405fad3..94599ccf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bfx-report-electron", - "version": "4.12.0", + "version": "4.13.0", "repository": "https://github.com/bitfinexcom/bfx-report-electron", "description": "Reporting tool", "author": "bitfinex.com", From e33bd0e32c473f4f82db1915c07423005f0c4781 Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Tue, 17 Oct 2023 08:46:50 +0300 Subject: [PATCH 3/4] Add changelog for v4.13.0 --- CHANGELOG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2e18645..4b67ff68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [4.13.0] - 2023-10-18 + +### Added + +- Added `test` runner and `HTML report` maker workflows to the GitHub Actions which launch after creating PRs against the `master` branch. PRs: [bfx-report#337](https://github.com/bitfinexcom/bfx-report/pull/337), [bfx-reports-framework#325](https://github.com/bitfinexcom/bfx-reports-framework/pull/325), [bfx-report-electron#259](https://github.com/bitfinexcom/bfx-report-electron/pull/259) +- Implemented `Account Fees`, `Account Value` and `LEO level` sections on the new `Summary` page, added minor styling adjustments. PR: [bfx-report-ui#716](https://github.com/bitfinexcom/bfx-report-ui/pull/716) + +### Security + +- Removed `lodash` lib usage. PRs: [bfx-report#336](https://github.com/bitfinexcom/bfx-report/pull/336), [bfx-report-ui#717](https://github.com/bitfinexcom/bfx-report-ui/pull/717), [lib-js-util-base#6](https://github.com/bitfinexcom/lib-js-util-base/pull/6) + ## [4.12.0] - 2023-10-04 ### Added From 9eaa736c67271f5b5047a6c3baf7798ee95fea44 Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Tue, 17 Oct 2023 21:58:32 +0300 Subject: [PATCH 4/4] Update sub-modules --- bfx-report-ui | 2 +- bfx-reports-framework | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bfx-report-ui b/bfx-report-ui index f2615af4..5db1647f 160000 --- a/bfx-report-ui +++ b/bfx-report-ui @@ -1 +1 @@ -Subproject commit f2615af4d3deb5fa0761b5ad072e9afe28a650ae +Subproject commit 5db1647f91a87e33c8da5c3d6352abf406f7bffc diff --git a/bfx-reports-framework b/bfx-reports-framework index 5411e01d..3f48d503 160000 --- a/bfx-reports-framework +++ b/bfx-reports-framework @@ -1 +1 @@ -Subproject commit 5411e01d7f4b367aa88006b1e5a6836ead429147 +Subproject commit 3f48d5039c57c12318f52ab523bcc1f9e413a04c