Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
fix test in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
horacioh committed Mar 7, 2024
1 parent 6c3bd4a commit 8698442
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/desktop-smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
strategy:
matrix:
config:
- os: macos-latest-xl
- os: macos-latest
arch: x64
goarch: amd64
daemon_name: x86_64-apple-darwin
Expand Down Expand Up @@ -68,44 +68,46 @@ jobs:
- name: Build, package & make (Unix)
if: matrix.config.os != 'windows-latest-l'
run: |
yarn desktop:test:package --arch=${{ matrix.config.arch }}
yarn desktop:make --arch=${{ matrix.config.arch }}
env:
NODE_ENV: test
NODE_OPTIONS: --max_old_space_size=4096
DAEMON_NAME: ${{ matrix.config.daemon_name }}
VITE_VERSION: "100.10.1"
# VITE_VERSION: "0.0.100"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
timeout-minutes: 10
SMOKE_TEST: "1"
VITE_DESKTOP_P2P_PORT: "55000"
VITE_DESKTOP_HTTP_PORT: "55001"
VITE_DESKTOP_GRPC_PORT: "55002"
VITE_DESKTOP_DESKTOP_APPDATA: "Mintter"
VITE_DESKTOP_P2P_PORT: "58000"
VITE_DESKTOP_HTTP_PORT: "58001"
VITE_DESKTOP_GRPC_PORT: "58002"
VITE_DESKTOP_APPDATA: "Mintter"
VITE_DESKTOP_HOSTNAME: "http://localhost"
VITE_HM_SENTRY_DESKTOP_DSN: "${{ secrets.HM_SENTRY_SITE_DSN }}"
SENTRY_AUTH_TOKEN: "${{ secrets.SENTRY_AUTH_TOKEN }}"
VITE_DESKTOP_SENTRY_DSN: "${{ secrets.DESKTOP_SENTRY_DSN }}"

- name: Build, package and make (Win32)
if: matrix.config.os == 'windows-latest-l'
run: |
yarn desktop:test:package --arch=${{ matrix.config.arch }}
yarn desktop:make --arch=${{ matrix.config.arch }}
env:
NODE_ENV: test
NODE_OPTIONS: --max_old_space_size=4096
DAEMON_NAME: "${{ matrix.config.daemon_name }}.exe"
VITE_VERSION: "100.10.1"
SMOKE_TEST: "1"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
VITE_HM_SENTRY_DESKTOP_DSN: "${{ secrets.HM_SENTRY_SITE_DSN }}"
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
timeout-minutes: 10
VITE_DESKTOP_P2P_PORT: "55000"
VITE_DESKTOP_HTTP_PORT: "55001"
VITE_DESKTOP_GRPC_PORT: "55002"
VITE_DESKTOP_DESKTOP_APPDATA: "Mintter"
VITE_DESKTOP_P2P_PORT: "58000"
VITE_DESKTOP_HTTP_PORT: "58001"
VITE_DESKTOP_GRPC_PORT: "58002"
VITE_DESKTOP_APPDATA: "Mintter"
VITE_DESKTOP_HOSTNAME: "http://localhost"
VITE_DESKTOP_SENTRY_DSN: "${{ secrets.DESKTOP_SENTRY_DSN }}"

- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: yarn desktop:test
run: yarn desktop:test:only
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down
1 change: 0 additions & 1 deletion frontend/apps/desktop/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type {PlaywrightTestConfig} from '@playwright/test'

const config: PlaywrightTestConfig = {
testDir: 'tests',
outputDir: 'test-results',
// Fail the build on CI if you accidentally left test.only in the source code.
forbidOnly: !!process.env.CI,
snapshotPathTemplate: '{testDir}/__screenshots__/{testFilePath}/{arg}{ext}',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"desktop:test:package": "yarn build && yarn workspace @mintter/desktop package:test",
"desktop:publish": "yarn build && yarn workspace @mintter/desktop publish",
"desktop:test": "yarn workspace @mintter/desktop test",
"desktop:test:only": "yarn workspace @mintter/desktop test:only",
"desktop:devtools": "yarn workspace @mintter/desktop devtools",
"watch": "yarn workspaces foreach -pi run watch",
"fix": "manypkg fix",
Expand Down

0 comments on commit 8698442

Please sign in to comment.