Skip to content

Commit

Permalink
Release v2.5.0 - to main (#2200)
Browse files Browse the repository at this point in the history
  • Loading branch information
MateuszMudita authored Nov 26, 2024
2 parents b027587 + a009946 commit 9f4fc9d
Show file tree
Hide file tree
Showing 497 changed files with 24,583 additions and 4,968 deletions.
80 changes: 49 additions & 31 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,69 +1,87 @@
# [Optional] Phrase.com
# All environment variables listed here are not required for the application to start;
# however, missing values may impact application behavior in various ways.

# Legend:
# [CI Mode] - Variable used only in Continuous Integration (CI) environments
# [Dev Mode] - Optional variable primarily used in the development environment
# [Setup Mode] - Variable required only during the setup and build process of CI Mode
# [Standard] - Common variable used across all environments


# [CI Mode] Mocks behavior of e2e tests run in CI. Default "false"; set "true" to enable.
E2ECI=

# [CI Mode] Defines the path to external variables file
STATIC_CONFIGURATION_FILE_PATH=

# [CI Mode] Set LOCALAPPDATA to empty for Windows platform to ensure clean environment in CI.
LOCALAPPDATA=

# [Setup Mode] URL for mudita-dev-resources repo where gt-pressura font is placed
FONTS_DIRECTORY_URL=

# [Setup Mode] Access token for dummy-account that has an access to Mudita private repositories
GITHUB_ACCESS_TOKEN=

# [Standard] Phrase.com
PHRASE_API_KEY=
PHRASE_API_URL=

# [Optional, only in development mode] Phrase.com
# [Dev Mode] Phrase.com API key for development mode
PHRASE_API_KEY_DEV=

# [Optional] Mudita Center Server URL to access to external services via proxy
# [Standard] Mudita Center Server URL to access to external services via proxy
MUDITA_CENTER_SERVER_URL=
MUDITA_CENTER_SERVER_V2_URL=

# [Optional] Rollbar Token needed to connect user’s app with Rollbar account.
# [Standard] Rollbar Token needed to connect user’s app with Rollbar account
ROLLBAR_TOKEN=

# For Mudita developers only

# [Optional] Access token for dummy-account that has an access to Mudita private repositories. This variable is needed only in development and build production app.
GITHUB_ACCESS_TOKEN=

# [Optional] GitHub repository name for Mudita Center updates. Default: "mudita-center"
# [Standard] GitHub repository name for Mudita Center updates. Default: "mudita-center"
RELEASES_REPOSITORY_NAME=

# [Optional] Enable pre release for update process. Disabledd by default, set "1" to enable
# [Dev Mode] Enable pre-release for update process. Disabled by default; set "1" to enable
PRERELEASES_ENABLED=

# [Optional] Client id of the Microsoft Outlook application used for calendars and contacts
# [Standard] Client ID of the Microsoft Outlook application used for calendars and contacts
LOGIN_MICROSOFT_ONLINE_CLIENT_ID=

# [Optional] URL for mudita-dev-resources repo where gt-pressura font is placed.
FONTS_DIRECTORY_URL=

# [Optional] mudita.freshdesk.com
# [Standard] mudita.freshdesk.com
FRESHDESK_API_URL=
FRESHDESK_API_TOKEN=

# [Optional] analytics.mudita.com
# [Standard] analytics.mudita.com
ANALYTICS_ENABLED=
ANALYTICS_API_URL=
ANALYTICS_API_SITE_ID=

# [Optional] Defines current feature toggles environment
# [Standard] Defines current feature toggles environment
FEATURE_TOGGLE_ENVIRONMENT=

# [Optional] Defines the path to external variables file (used on CI)
STATIC_CONFIGURATION_FILE_PATH=

# [Optional] Disable redux logger during development. Enabled by default, set "0" to disable
# [Dev Mode] Disable redux logger during development. Enabled by default; set "0" to disable
DEV_REDUX_LOGGER_ENABLED=

# [Optional] Disable device logger during development. Enabled by default, set "0" to disable
# [Dev Mode] Disable device logger during development. Enabled by default; set "0" to disable
DEV_DEVICE_LOGGER_ENABLED=

# [Optional] Set desired latest release. Is based on enum OsEnvironment, so can be set to 'production', 'test-production' or 'daily'.
# [Standard] Set desired latest release. Based on enum OsEnvironment; can be 'production', 'test-production' or 'daily'
FEATURE_TOGGLE_RELEASE_ENVIRONMENT=

# [Optional] Enable Mudita Center prerelease feature. Disabled by default, set "1" to enable
MUDITA_CENTER_PRERELEASE_ENABLED=

# [Optional] Set 1 run application with mock server
# [Dev Mode] Runs the application with a mock server. Disabled by default; set "1" to enable
MOCK_SERVICE_ENABLED=

# [Optional] Enable shortcut for opening DevTools. Disabled by default, set "1" to enable
# [Dev Mode] Enable shortcut for opening DevTools and access to useDevConsole functionalities.
# Disabled by default; set "1" to enable
DEV_TOOLS_SHORTCUT_ENABLED=

# [Optional] Automatically open DevTools on startup. Disabled by default, set "1" to enable
# [Dev Mode] Automatically open DevTools on startup. Disabled by default; set "1" to enable
DEV_TOOLS_AUTO_OPEN_ENABLED=

# [Optional] Allows to show unpublished content in Help. Disabled by default, set a secret token to enable
# [Dev Mode] Allows showing unpublished content in Help. Disabled by default; set a secret token to enable
DEV_HELP_PREVIEW_TOKEN=

# [Dev Mode] Enable DEV version of API configuration. Disabled by default; set "1" to enable
DEV_API_CONFIG=

# [Dev Mode] Path to directory with flash packages for Mudita Harmony
DEV_FLASH_PACKAGE_PATH=
1 change: 0 additions & 1 deletion .github/workflows/e2e-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
DEV_REDUX_LOGGER_ENABLED: ${{ secrets.DEV_REDUX_LOGGER_ENABLED }}
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MUDITA_CENTER_PRERELEASE_ENABLED: ${{ secrets.MUDITA_CENTER_PRERELEASE_ENABLED }}
MOCK_SERVICE_ENABLED: ${{ secrets.MOCK_SERVICE_ENABLED }}
run: |
printenv > .env
Expand Down
64 changes: 56 additions & 8 deletions .github/workflows/e2e-feature-branch.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: e2e on Linux for feature branch
name: e2e on Linux / Windows self-hosted for feature branch

on:
push:
Expand All @@ -7,7 +7,10 @@ on:

jobs:
e2e:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ Windows, Linux ]
environment: development
steps:
- name: Checkout code
Expand All @@ -16,7 +19,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 18.16.1
- name: Setup environment variables
- name: Setup environment variables for Linux
if: matrix.os == 'Linux'
env:
E2ECI: "true"
TEST_GITHUB_TOKEN: ${{ secrets.MC_GITHUB_ACCESS_TOKEN }}
Expand All @@ -42,18 +46,62 @@ jobs:
DEV_REDUX_LOGGER_ENABLED: ${{ secrets.DEV_REDUX_LOGGER_ENABLED }}
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MUDITA_CENTER_PRERELEASE_ENABLED: ${{ secrets.MUDITA_CENTER_PRERELEASE_ENABLED }}
MOCK_SERVICE_ENABLED: ${{ secrets.MOCK_SERVICE_ENABLED }}
run: |
printenv > .env
- name: Setup environment variables for Windows
if: matrix.os == 'Windows'
env:
E2ECI: "true"
TEST_GITHUB_TOKEN: ${{ secrets.MC_GITHUB_ACCESS_TOKEN }}
TEST_BINARY_PATH: 'C:\actions-runner\_work\mudita-center\mudita-center\apps\mudita-center\release\win-unpacked\Mudita Center.exe'
PHRASE_API_KEY: ${{ secrets.PHRASE_API_KEY }}
PHRASE_API_URL: ${{ secrets.PHRASE_API_URL }}
PHRASE_API_KEY_DEV: ${{ secrets.PHRASE_API_KEY_DEV }}
MUDITA_CENTER_SERVER_URL: ${{ secrets.MUDITA_CENTER_SERVER_URL }}
MUDITA_CENTER_SERVER_V2_URL: ${{ secrets.MUDITA_CENTER_SERVER_V2_URL }}
ROLLBAR_TOKEN: ${{ secrets.ROLLBAR_TOKEN }}
RELEASES_REPOSITORY_NAME: ${{ secrets.RELEASES_REPOSITORY_NAME }}
PRERELEASES_ENABLED: ${{ secrets.PRERELEASES_ENABLED }}
GITHUB_ACCESS_TOKEN: ${{ secrets.MC_GITHUB_ACCESS_TOKEN }}
LOGIN_MICROSOFT_ONLINE_CLIENT_ID: ${{ secrets.LOGIN_MICROSOFT_ONLINE_CLIENT_ID }}
FONTS_DIRECTORY_URL: ${{ secrets.FONTS_DIRECTORY_URL }}
FRESHDESK_API_URL: ${{ secrets.FRESHDESK_API_URL }}
FRESHDESK_API_TOKEN: ${{ secrets.FRESHDESK_API_TOKEN }}
ANALYTICS_ENABLED: ${{ secrets.ANALYTICS_ENABLED }}
ANALYTICS_API_URL: ${{ secrets.ANALYTICS_API_URL }}
ANALYTICS_API_SITE_ID: ${{ secrets.ANALYTICS_API_SITE_ID }}
FEATURE_TOGGLE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_ENVIRONMENT }}
STATIC_CONFIGURATION_FILE_PATH: ${{ secrets.STATIC_CONFIGURATION_FILE_PATH }}
DEV_REDUX_LOGGER_ENABLED: ${{ secrets.DEV_REDUX_LOGGER_ENABLED }}
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MOCK_SERVICE_ENABLED: ${{ secrets.MOCK_SERVICE_ENABLED }}
NEW_HELP_ENABLED: ${{ secrets.NEW_HELP_ENABLED }}
shell: cmd
run: |
SET > .env
- name: Setup dependencies
run: npm run setup
- name: Build App
- name: Build App for Linux
if: matrix.os == 'Linux'
run: |
export NODE_OPTIONS="--max-old-space-size=4096"
npm run app:dist
- name: Run E2E tests headless with Xvfb
- name: Build App for Windows
if: matrix.os == 'Windows'
run: |
$env:NODE_OPTIONS="--max-old-space-size=4096"
$env:LOCALAPPDATA=""
npm run app:dist
- name: Run E2E tests headless with Xvfb on Linux
if: matrix.os == 'Linux'
run: |
npm run e2e:test:cicd:standalone
- name: Run E2E tests headless on Windows
env:
TEST_BINARY_PATH: 'C:\actions-runner\_work\mudita-center\mudita-center\apps\mudita-center\release\win-unpacked\Mudita Center.exe'
if: matrix.os == 'Windows'
run: |
sudo apt-get update
sudo apt-get install -y xvfb
cd apps/mudita-center-e2e
npm run e2e:test:cicd:standalone
1 change: 0 additions & 1 deletion .github/workflows/e2e-pre-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ jobs:
DEV_REDUX_LOGGER_ENABLED: ${{ secrets.DEV_REDUX_LOGGER_ENABLED }}
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MUDITA_CENTER_PRERELEASE_ENABLED: ${{ secrets.MUDITA_CENTER_PRERELEASE_ENABLED }}
MOCK_SERVICE_ENABLED: ${{ secrets.MOCK_SERVICE_ENABLED }}
run: |
printenv > .env
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/e2e-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ jobs:
DEV_REDUX_LOGGER_ENABLED: ${{ secrets.DEV_REDUX_LOGGER_ENABLED }}
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MUDITA_CENTER_PRERELEASE_ENABLED: ${{ secrets.MUDITA_CENTER_PRERELEASE_ENABLED }}
MOCK_SERVICE_ENABLED: ${{ secrets.MOCK_SERVICE_ENABLED }}
run: |
printenv > .env
Expand Down
21 changes: 0 additions & 21 deletions .github/workflows/nexus-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ jobs:
DEV_REDUX_LOGGER_ENABLED: ${{ secrets.DEV_REDUX_LOGGER_ENABLED }}
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MUDITA_CENTER_PRERELEASE_ENABLED: ${{ secrets.MUDITA_CENTER_PRERELEASE_ENABLED }}
DEV_TOOLS_SHORTCUT_ENABLED: "1"
LOCALAPPDATA: ""
shell: cmd
Expand Down Expand Up @@ -74,7 +73,6 @@ jobs:
DEV_REDUX_LOGGER_ENABLED: ${{ secrets.DEV_REDUX_LOGGER_ENABLED }}
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MUDITA_CENTER_PRERELEASE_ENABLED: ${{ secrets.MUDITA_CENTER_PRERELEASE_ENABLED }}
DEV_TOOLS_SHORTCUT_ENABLED: "1"
run: |
printenv > .env
Expand Down Expand Up @@ -102,7 +100,6 @@ jobs:
DEV_REDUX_LOGGER_ENABLED: ${{ secrets.DEV_REDUX_LOGGER_ENABLED }}
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MUDITA_CENTER_PRERELEASE_ENABLED: ${{ secrets.MUDITA_CENTER_PRERELEASE_ENABLED }}
DEV_TOOLS_SHORTCUT_ENABLED: "1"
run: |
printenv > .env
Expand Down Expand Up @@ -157,24 +154,6 @@ jobs:
if: matrix.os == 'macOS'
run: |
codesign -v -v apps/mudita-center/release/mac/Mudita\ Center.app
- name: Signing via Digicert
if: matrix.os == 'Windows'
env:
SM_HOST: ${{ secrets.SM_HOST }}
SM_API_KEY: ${{ secrets.SM_API_KEY }}
SM_CLIENT_CERT_FILE: "C:\\actions-runner\\certs\\Certificate_pkcs12.p12"
SM_CLIENT_CERT_PASSWORD: ${{ secrets.SM_CLIENT_CERT_PASSWORD }}
SM_CODE_SIGNING_CERT_SHA1_HASH: ${{ secrets.SM_CODE_SIGNING_CERT_SHA1_HASH }}
run: |
SET SM_HOST=%SM_HOST%
SET SM_API_KEY=%SM_API_KEY%
SET SM_CLIENT_CERT_FILE=%SM_CLIENT_CERT_FILE%
SET SM_CLIENT_CERT_PASSWORD=%SM_CLIENT_CERT_PASSWORD%
SET SM_CODE_SIGNING_CERT_SHA1_HASH=%SM_CODE_SIGNING_CERT_SHA1_HASH%
SET PATH=%PATH%;"C:\Program Files\DigiCert\DigiCert One Signing Manager Tools"
SET PATH=%PATH%;"C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64"
signtool.exe sign /sha1 %SM_CODE_SIGNING_CERT_SHA1_HASH% /tr http://timestamp.digicert.com /td SHA256 /fd SHA256 ./apps/mudita-center/release/Mudita-Center.exe
shell: cmd
- name: Push artifacts to nexus registry from Windows
if: matrix.os == 'Windows'
env:
Expand Down
21 changes: 0 additions & 21 deletions .github/workflows/nexus-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ jobs:
DEV_REDUX_LOGGER_ENABLED: ${{ secrets.DEV_REDUX_LOGGER_ENABLED }}
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MUDITA_CENTER_PRERELEASE_ENABLED: ${{ secrets.MUDITA_CENTER_PRERELEASE_ENABLED }}
DEV_TOOLS_SHORTCUT_ENABLED: "1"
LOCALAPPDATA: ""
shell: cmd
Expand Down Expand Up @@ -74,7 +73,6 @@ jobs:
DEV_REDUX_LOGGER_ENABLED: ${{ secrets.DEV_REDUX_LOGGER_ENABLED }}
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MUDITA_CENTER_PRERELEASE_ENABLED: ${{ secrets.MUDITA_CENTER_PRERELEASE_ENABLED }}
DEV_TOOLS_SHORTCUT_ENABLED: "1"
run: |
printenv > .env
Expand Down Expand Up @@ -102,7 +100,6 @@ jobs:
DEV_REDUX_LOGGER_ENABLED: ${{ secrets.DEV_REDUX_LOGGER_ENABLED }}
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MUDITA_CENTER_PRERELEASE_ENABLED: ${{ secrets.MUDITA_CENTER_PRERELEASE_ENABLED }}
DEV_TOOLS_SHORTCUT_ENABLED: "1"
run: |
printenv > .env
Expand Down Expand Up @@ -157,24 +154,6 @@ jobs:
if: matrix.os == 'macOS'
run: |
codesign -v -v apps/mudita-center/release/mac/Mudita\ Center.app
- name: Signing via Digicert
if: matrix.os == 'Windows'
env:
SM_HOST: ${{ secrets.SM_HOST }}
SM_API_KEY: ${{ secrets.SM_API_KEY }}
SM_CLIENT_CERT_FILE: "C:\\actions-runner\\certs\\Certificate_pkcs12.p12"
SM_CLIENT_CERT_PASSWORD: ${{ secrets.SM_CLIENT_CERT_PASSWORD }}
SM_CODE_SIGNING_CERT_SHA1_HASH: ${{ secrets.SM_CODE_SIGNING_CERT_SHA1_HASH }}
run: |
SET SM_HOST=%SM_HOST%
SET SM_API_KEY=%SM_API_KEY%
SET SM_CLIENT_CERT_FILE=%SM_CLIENT_CERT_FILE%
SET SM_CLIENT_CERT_PASSWORD=%SM_CLIENT_CERT_PASSWORD%
SET SM_CODE_SIGNING_CERT_SHA1_HASH=%SM_CODE_SIGNING_CERT_SHA1_HASH%
SET PATH=%PATH%;"C:\Program Files\DigiCert\DigiCert One Signing Manager Tools"
SET PATH=%PATH%;"C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64"
signtool.exe sign /sha1 %SM_CODE_SIGNING_CERT_SHA1_HASH% /tr http://timestamp.digicert.com /td SHA256 /fd SHA256 ./apps/mudita-center/release/Mudita-Center.exe
shell: cmd
- name: Push artifacts to nexus registry from Windows
if: matrix.os == 'Windows'
env:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/nexus-mass-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ jobs:
DEV_REDUX_LOGGER_ENABLED: ${{ secrets.DEV_REDUX_LOGGER_ENABLED }}
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MUDITA_CENTER_PRERELEASE_ENABLED: ${{ secrets.MUDITA_CENTER_PRERELEASE_ENABLED }}
LOCALAPPDATA: ""
shell: cmd
run: |
Expand Down Expand Up @@ -75,7 +74,6 @@ jobs:
DEV_REDUX_LOGGER_ENABLED: ${{ secrets.DEV_REDUX_LOGGER_ENABLED }}
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MUDITA_CENTER_PRERELEASE_ENABLED: ${{ secrets.MUDITA_CENTER_PRERELEASE_ENABLED }}
run: |
printenv > .env
- name: Setup Env for Linux
Expand All @@ -102,7 +100,6 @@ jobs:
DEV_REDUX_LOGGER_ENABLED: ${{ secrets.DEV_REDUX_LOGGER_ENABLED }}
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MUDITA_CENTER_PRERELEASE_ENABLED: ${{ secrets.MUDITA_CENTER_PRERELEASE_ENABLED }}
run: |
printenv > .env
- name: Changing app version in packages.json for Linux
Expand Down
Loading

0 comments on commit 9f4fc9d

Please sign in to comment.