-
Notifications
You must be signed in to change notification settings - Fork 14
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 #298 from bitfinexcom/staging
Release version 4.17.0
- Loading branch information
Showing
22 changed files
with
645 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: 'Prepare Mac runner' | ||
description: 'Turn uninterrupted testing on mac' | ||
runs: | ||
using: composite | ||
steps: | ||
- run: ${{ github.action_path }}/prepare-mac-runner.sh | ||
shell: bash |
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,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Turn uninterrupted testing on mac | ||
|
||
# Change Local name to avoid name clash causing alert | ||
uniqueComputerName="mac-e2e-test-runner-$RANDOM" | ||
sudo scutil --set LocalHostName "$uniqueComputerName" | ||
sudo scutil --set ComputerName "$uniqueComputerName" | ||
|
||
# Close Notification window | ||
sudo killall UserNotificationCenter || true | ||
|
||
# Do not disturb | ||
defaults -currentHost write com.apple.notificationcenterui doNotDisturb -boolean true | ||
defaults -currentHost write com.apple.notificationcenterui doNotDisturbDate -date "`date -u +\"%Y-%m-%d %H:%M:%S +0000\"`" | ||
sudo killall NotificationCenter | ||
|
||
# Disable firewall | ||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off | ||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw -k | ||
|
||
# Close Finder Windows using Apple Script | ||
sudo osascript -e 'tell application "Finder" to close windows' |
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 |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Set repo owner | ||
|
@@ -76,17 +76,31 @@ jobs: | |
max_attempts: 3 | ||
retry_on: any | ||
command: ./scripts/launch.sh -lwp | ||
- name: Zip Linux Unpacked build | ||
run: zip -r dist/linux-unpacked.zip dist/linux-unpacked | ||
- name: Upload Linux Unpacked build | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: linux-unpacked | ||
path: dist/linux-unpacked.zip | ||
- name: Zip Win Unpacked build | ||
run: zip -r dist/win-unpacked.zip dist/win-unpacked | ||
- name: Upload Win Unpacked build | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: win-unpacked | ||
path: dist/win-unpacked.zip | ||
- name: Prepare cache folders | ||
run: | | ||
sudo chown -R $(id -u):$(id -g) ~/.cache/electron | ||
sudo chown -R $(id -u):$(id -g) ~/.cache/electron-builder | ||
mac-builder: | ||
timeout-minutes: 90 | ||
runs-on: macos-11 | ||
runs-on: macos-12 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Set repo owner | ||
|
@@ -135,3 +149,108 @@ jobs: | |
max_attempts: 3 | ||
retry_on: any | ||
command: ./scripts/build-release.sh -mp | ||
- name: Zip Mac Unpacked build | ||
run: zip -r dist/mac.zip dist/mac | ||
- name: Upload Mac Unpacked build | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: mac-unpacked | ||
path: dist/mac.zip | ||
|
||
linux-e2e-test-runner: | ||
name: Linux E2E Test Runner | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-22.04 | ||
needs: [linux-win-docker-builder] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.17.1 | ||
- name: Install main dev deps | ||
run: npm i --development --no-audit --progress=false --force | ||
- name: Download Linux Unpacked build | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: linux-unpacked | ||
path: dist | ||
- name: Unzip Linux Unpacked build | ||
run: unzip dist/linux-unpacked.zip | ||
- name: Run tests | ||
uses: coactions/[email protected] | ||
with: | ||
run: npm run e2e | ||
- name: Normalize E2E test report | ||
run: node ./scripts/node/normalize-e2e-test-report e2e-test-report.xml | ||
- name: Upload Linux E2E test results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: linux-e2e-test-results | ||
path: e2e-test-report.xml | ||
|
||
win-e2e-test-runner: | ||
name: Win E2E Test Runner | ||
timeout-minutes: 30 | ||
runs-on: windows-2022 | ||
needs: [linux-win-docker-builder] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.17.1 | ||
- name: Install main dev deps | ||
run: npm i --development --no-audit --progress=false --force | ||
- name: Download Linux Unpacked build | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: win-unpacked | ||
path: dist | ||
- name: Unzip Win Unpacked build | ||
run: 7z -y x dist/win-unpacked.zip | ||
- name: Run tests | ||
uses: coactions/[email protected] | ||
with: | ||
run: npm run e2e | ||
- name: Normalize E2E test report | ||
run: node ./scripts/node/normalize-e2e-test-report e2e-test-report.xml | ||
- name: Upload Win E2E test results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: win-e2e-test-results | ||
path: e2e-test-report.xml | ||
|
||
mac-e2e-test-runner: | ||
name: Mac E2E Test Runner | ||
timeout-minutes: 30 | ||
runs-on: macos-12 | ||
needs: [mac-builder] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Prepare Mac runner | ||
uses: ./.github/actions/prepare-mac-runner | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.17.1 | ||
- name: Install main dev deps | ||
run: npm i --development --no-audit --progress=false --force | ||
- name: Download Mac Unpacked build | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: mac-unpacked | ||
path: dist | ||
- name: Unzip Mac Unpacked build | ||
run: unzip dist/mac.zip | ||
- name: Run tests | ||
uses: coactions/[email protected] | ||
with: | ||
run: npm run e2e | ||
- name: Normalize E2E test report | ||
run: node ./scripts/node/normalize-e2e-test-report e2e-test-report.xml | ||
- name: Upload Mac E2E test results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: mac-e2e-test-results | ||
path: e2e-test-report.xml |
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,47 @@ | ||
name: 'E2E Test Report' | ||
run-name: 'E2E Test Report: Commit ${{ github.sha }}' | ||
|
||
on: | ||
workflow_run: | ||
workflows: ['Build release'] | ||
types: | ||
- completed | ||
|
||
permissions: | ||
contents: read | ||
actions: read | ||
checks: write | ||
|
||
jobs: | ||
e2e-web-page-report: | ||
name: E2E Web Page Report | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: dorny/test-reporter@v1 | ||
id: linux-e2e-test-results | ||
with: | ||
artifact: linux-e2e-test-results | ||
name: Linux E2E Tests | ||
path: e2e-test-report.xml | ||
reporter: jest-junit | ||
- uses: dorny/test-reporter@v1 | ||
id: win-e2e-test-results | ||
with: | ||
artifact: win-e2e-test-results | ||
name: Win E2E Tests | ||
path: e2e-test-report.xml | ||
reporter: jest-junit | ||
- uses: dorny/test-reporter@v1 | ||
id: mac-e2e-test-results | ||
with: | ||
artifact: mac-e2e-test-results | ||
name: Mac E2E Tests | ||
path: e2e-test-report.xml | ||
reporter: jest-junit | ||
- name: E2E Test Report Summary | ||
run: | | ||
echo "### E2E Test Report page is ready! :rocket:" >> $GITHUB_STEP_SUMMARY | ||
echo "And available at the following links for applicable OSs:" >> $GITHUB_STEP_SUMMARY | ||
echo "- [Linux](${{ steps.linux-e2e-test-results.outputs.url_html }})" >> $GITHUB_STEP_SUMMARY | ||
echo "- [Win](${{ steps.win-e2e-test-results.outputs.url_html }})" >> $GITHUB_STEP_SUMMARY | ||
echo "- [Mac](${{ steps.mac-e2e-test-results.outputs.url_html }})" >> $GITHUB_STEP_SUMMARY |
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 |
---|---|---|
|
@@ -13,3 +13,5 @@ package-lock.json | |
lastCommit.json | ||
electronEnv.json | ||
stub.AppImage | ||
e2e-test-report.xml | ||
test-report.json |
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
Submodule bfx-report-ui
updated
24 files
Submodule bfx-reports-framework
updated
10 files
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
Oops, something went wrong.