This repository has been archived by the owner on Jan 2, 2025. It is now read-only.
add smoke test script #2
Workflow file for this run
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
name: Desktop app Smoke test | |
permissions: | |
contents: write | |
on: | |
# schedule: | |
# - cron: "0 8 * * *" | |
push: | |
branches: | |
- app-perf | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
AWS_REGION: us-east-1 | |
jobs: | |
build-binaries: | |
name: Build ${{ matrix.config.os }} @ ${{ matrix.config.arch }} | |
runs-on: ${{ matrix.config.os }} | |
# if: startsWith(github.ref, 'refs/tags/') | |
strategy: | |
matrix: | |
config: | |
- os: macos-latest-xl | |
arch: x64 | |
goarch: amd64 | |
daemon_name: x86_64-apple-darwin | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- uses: ./.github/actions/ci-setup | |
with: | |
matrix-os: ${{ matrix.config.os }} | |
# matrix-target: ${{ matrix.config.daemon_name }} | |
# matrix-arch: ${{ matrix.config.arch }} | |
- name: Build Backend (Unix) | |
if: matrix.config.os != 'windows-latest-l' | |
run: | | |
mkdir -p plz-out/bin/backend | |
go build -o plz-out/bin/backend/mintterd-${{ matrix.config.daemon_name }} ./backend/cmd/mintterd | |
env: | |
GOARCH: ${{ matrix.config.goarch }} | |
CGO_ENABLED: 1 | |
- name: Build Backend (Windows) | |
if: matrix.config.os == 'windows-latest-l' | |
run: | | |
mkdir -p plz-out/bin/backend | |
go build -o plz-out/bin/backend/mintterd-${{ matrix.config.daemon_name }}.exe ./backend/cmd/mintterd | |
env: | |
GOOS: "windows" | |
GOARCH: ${{ matrix.config.goarch }} | |
CGO_ENABLED: 1 | |
- name: Set temporal version in package.json | |
run: | | |
node scripts/set-desktop-version.mjs | |
env: | |
VITE_VERSION: "100.10.1" | |
- name: Build, package & make (Unix) | |
if: matrix.config.os != 'windows-latest-l' | |
run: | | |
yarn desktop:test:package --arch=${{ matrix.config.arch }} | |
env: | |
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_HOSTNAME: "http://localhost" | |
VITE_HM_SENTRY_DESKTOP_DSN: "${{ secrets.HM_SENTRY_SITE_DSN }}" | |
SENTRY_AUTH_TOKEN: "${{ secrets.SENTRY_AUTH_TOKEN }}" | |
- name: Build, package and make (Win32) | |
if: matrix.config.os == 'windows-latest-l' | |
run: | | |
yarn desktop:test:package --arch=${{ matrix.config.arch }} | |
env: | |
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_HOSTNAME: "http://localhost" | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run Playwright tests | |
run: yarn desktop:test |