Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cp xxx mac os tests working #2253

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 37 additions & 3 deletions .github/workflows/e2e-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [Windows, Linux]
os: [Linux, Windows, macOS]
if: startsWith(github.head_ref || github.ref, 'CP-')
environment: development
steps:
Expand Down Expand Up @@ -52,6 +52,36 @@ jobs:
MOCK_SERVICE_ENABLED: ${{ secrets.MOCK_SERVICE_ENABLED }}
run: |
printenv > .env
- name: Setup Env for Mac
if: matrix.os == 'macOS'
env:
E2ECI: "true"
TEST_GITHUB_TOKEN: ${{ secrets.MC_GITHUB_ACCESS_TOKEN }}
TEST_BINARY_PATH: "../mudita-center/release/mac/Mudita Center.app/Contents/MacOS/Mudita Center"
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 }}
DEV_TOOLS_SHORTCUT_ENABLED: "1"
run: |
printenv > .env
- name: Setup environment variables for Windows
if: matrix.os == 'Windows'
env:
Expand Down Expand Up @@ -86,8 +116,8 @@ jobs:
SET > .env
- name: Setup dependencies
run: npm run setup
- name: Build App for Linux
if: matrix.os == 'Linux'
- name: Build App for Linux/Mac
if: matrix.os != 'Windows'
run: |
export NODE_OPTIONS="--max-old-space-size=4096"
npm run app:dist
Expand All @@ -101,6 +131,10 @@ jobs:
if: matrix.os == 'Linux'
run: |
npm run e2e:test:cicd:standalone
- name: Run E2E tests headless on Mac
if: matrix.os == 'macOS'
run: |
npm run e2e:test:standalone
- name: Run E2E tests headless on Windows
env:
TEST_BINARY_PATH: '..\mudita-center\release\win-unpacked\Mudita Center.exe'
Expand Down
3 changes: 1 addition & 2 deletions apps/mudita-center-e2e/wdio.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export const config: Options.Testrunner = {
browserName: "chrome",
"goog:chromeOptions": {
binary: process.env.TEST_BINARY_PATH,
args: ["--port", "31337"],
args: [],
},
"wdio:chromedriverOptions": {
binary: path.resolve(
Expand All @@ -206,7 +206,6 @@ export const config: Options.Testrunner = {
"bin",
"chromedriver"
),
port: 31337,
},
// If outputDir is provided WebdriverIO can capture driver session logs
// it is possible to configure which logTypes to include/exclude.
Expand Down
Loading