-
Notifications
You must be signed in to change notification settings - Fork 691
82 lines (73 loc) · 2.82 KB
/
Copy pathbranded-client.yml
File metadata and controls
82 lines (73 loc) · 2.82 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
79
80
81
82
name: GUI Tests (Branded Client)
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
env:
NPM_GHERLINT: "@gherlint/gherlint@1.1.0"
jobs:
gui-tests:
runs-on: ubuntu-latest
container: owncloudci/squish:fedora-42-8.1.0-qt68x-linux64
env:
PLAYWRIGHT_BROWSERS_PATH: /__w/client/client/test/gui/.playwright
GITHUB_REPO: ${{ github.repository }}
GITHUB_RUN_NUMBER: ${{ github.run_number }}
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Build client
run: |
mkdir -p build
cd build
cmake -G"Ninja" \
-DWITH_EXTERNAL_BRANDING=https://x-access-token:${{ secrets.KW_THEME_PAT }}@github.com/owncloud/client-desktop-theme-kiteworks.git \
-DCMAKE_BUILD_TYPE=Debug \
-DBUILD_TESTING=OFF \
-S ..
ninja
- name: Install Python Modules
run: |
export PATH=$PATH:/github/home/.local/bin
make -C test/gui install
python3.10 -m pip list -v
- name: Create GUI test report directory
run: |
mkdir test/gui/guiReportUpload/screenshots -p
chmod 777 test/gui -R
- name: Map predefined users
run: echo "${{ secrets.PREDEFINED_USERS }}" | base64 -d > test/gui/users.json
- name: Run GUI tests
id: run_gui_test
env:
LICENSEKEY: ${{ secrets.SQUISH_LICENSEKEY }}
GUI_TEST_REPORT_DIR: /__w/client/client/test/gui/guiReportUpload
CLIENT_REPO: .
CLIENT_NAME: ${{ secrets.CLIENT_NAME }}
PERSONAL_SYNC_FOLDER: ${{ secrets.PERSONAL_SYNC_FOLDER }}
PREDEFINED_USERS: users.json
OCIS_URL: ${{secrets.BACKEND_HOST}}
BACKEND_HOST: ${{secrets.BACKEND_HOST}}
SECURE_BACKEND_HOST: ${{secrets.BACKEND_HOST}}
OCIS: true
SERVER_INI: test/gui/ci/client_server.ini
SQUISH_PARAMETERS: >
--testsuite test/gui
--reportgen html,test/gui/guiReportUpload
--envvar QT_LOGGING_RULES=sync.httplogger=true;gui.socketapi=false
--tags ~@skip --tags ~@skipOnLinux --tags @predefined_users
--abortOnFail
STACKTRACE_FILE: test/gui/guiReportUpload/stacktrace.log
OWNCLOUD_CORE_DUMP: 1
RECORD_VIDEO_ON_FAILURE: false
COREPACK_ENABLE_STRICT: 0
HOME: /home/headless
run: bash /dockerstartup/entrypoint.sh
- name: Upload GUI test result
if: ${{ failure() && steps.run_gui_test.outcome == 'failure' }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: gui-report-branded-client-${{ github.run_number }}
path: test/gui/guiReportUpload
if-no-files-found: warn
retention-days: 7