-
Notifications
You must be signed in to change notification settings - Fork 749
78 lines (75 loc) · 2.66 KB
/
Copy pathdesktop_e2e.yaml
File metadata and controls
78 lines (75 loc) · 2.66 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
e2e-linux:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: ./.github/actions/install_desktop_deps
with:
target: linux
- uses: ./.github/actions/rust_install
with:
platform: linux
- uses: ./.github/actions/pnpm_install
- run: pnpm -F ui build
- run: pnpm -F desktop tauri build --no-bundle --target x86_64-unknown-linux-gnu --config ./src-tauri/tauri.conf.staging.json --features devtools
env:
CI: false
POSTHOG_API_KEY: phc_e2e
VITE_API_URL: https://api.anarlog.so
- uses: ./.github/actions/desktop-e2e-linux
with:
channel: staging
target_triple: x86_64-unknown-linux-gnu
e2e-macos:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: ./.github/actions/install_desktop_deps
with:
target: macos
- uses: ./.github/actions/rust_install
with:
platform: macos
- uses: ./.github/actions/pnpm_install
- run: pnpm -F ui build
- run: pnpm -F desktop tauri build --no-bundle --target aarch64-apple-darwin --config ./src-tauri/tauri.conf.staging.json --features devtools,automation
env:
CI: false
POSTHOG_API_KEY: phc_e2e
VITE_API_URL: https://api.anarlog.so
- uses: FedericoCarboni/setup-ffmpeg@v3
with:
ffmpeg-version: release
- run: |
BINARY_PATH="${{ github.workspace }}/apps/desktop/src-tauri/target/aarch64-apple-darwin/release/anarlog-staging"
echo "APP_BINARY_PATH=${BINARY_PATH}" >> $GITHUB_ENV
mkdir -p "${{ github.workspace }}/e2e/blackbox/logs"
echo "E2E_LOGS_DIR=${{ github.workspace }}/e2e/blackbox/logs" >> $GITHUB_ENV
- id: e2e-test
run: |
pnpm -F e2e-blackbox e2e 2>&1 | tee "${{ env.E2E_LOGS_DIR }}/e2e-test-output.log"
exit ${PIPESTATUS[0]}
env:
APP_BINARY_PATH: ${{ env.APP_BINARY_PATH }}
CN_API_KEY_WEBDRIVER: ${{ secrets.CN_API_KEY_WEBDRIVER }}
continue-on-error: true
- if: steps.e2e-test.outcome == 'failure'
uses: actions/upload-artifact@v4
with:
name: e2e-blackbox-artifacts-macos
path: |
${{ github.workspace }}/e2e/blackbox/logs/
${{ github.workspace }}/e2e/blackbox/videos/
retention-days: 7
if-no-files-found: ignore
- if: steps.e2e-test.outcome == 'failure'
run: exit 1