-
Notifications
You must be signed in to change notification settings - Fork 10
55 lines (53 loc) · 1.89 KB
/
build-test-desktop-app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: CI for the desktop app
on:
pull_request:
workflow_dispatch:
jobs:
build-desktop-app:
runs-on: ubuntu-latest
environment: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.11.1
- name: Build electron app
run: |
npm ci
cat <<EOF > apps/web/.env
INTERNAL_INTEGRATION_API_URL=${INTERNAL_INTEGRATION_API_URL}
NEXT_PUBLIC_SVM_METRICS="https://fr64dzklc3.execute-api.us-west-2.amazonaws.com/prod"
NEXT_PUBLIC_ADOBE_EMBED_API_KEY="a165f09589fc4cd29a574b37d1212a96"
NEXT_PUBLIC_TARGET='electron'
EOF
npx turbo run build --filter web
npx turbo run prepare-electron --filter web
cd apps/desktop
npm install -g @todesktop/[email protected]
todesktop build
env:
TODESKTOP_ACCESS_TOKEN: ${{ secrets.TODESKTOP_ACCESS_TOKEN }}
TODESKTOP_EMAIL: ${{ secrets.TODESKTOP_EMAIL }}
INTERNAL_INTEGRATION_API_URL: ${{ secrets.INTERNAL_INTEGRATION_API_URL }}
NEXT_PUBLIC_SVM_METRICS: "https://fr64dzklc3.execute-api.us-west-2.amazonaws.com/prod"
NEXT_PUBLIC_ADOBE_EMBED_API_KEY: "a165f09589fc4cd29a574b37d1212a96"
NEXT_PUBLIC_TARGET: "electron"
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
test-desktop-app:
needs: build-desktop-app
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.11.1
- name: Smoke test electron app
run: |
npm install -g @todesktop/[email protected]
cd apps/desktop
todesktop smoke-test
env:
TODESKTOP_ACCESS_TOKEN: ${{ secrets.TODESKTOP_ACCESS_TOKEN }}
TODESKTOP_EMAIL: ${{ secrets.TODESKTOP_EMAIL }}