Skip to content

Commit 19bd402

Browse files
committed
setup github workflow to run gui tests for branded client
Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>
1 parent 75a2176 commit 19bd402

5 files changed

Lines changed: 541 additions & 497 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
Name: GUI Tests (Branded Client)
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: "0 0 * * *"
8+
9+
env:
10+
NPM_GHERLINT: "@gherlint/gherlint@1.1.0"
11+
S3_PUBLIC_CACHE_SERVER: "https://cache.owncloud.com"
12+
S3_PUBLIC_CACHE_BUCKET: "public"
13+
14+
jobs:
15+
gui-tests:
16+
runs-on: ubuntu-latest
17+
container: owncloudci/squish:fedora-42-8.1.0-qt68x-linux64
18+
env:
19+
PLAYWRIGHT_BROWSERS_PATH: /__w/client/client/test/gui/.playwright
20+
# BACKEND_HOST:
21+
# PREDEFINED_USERS:
22+
# CLIENT_NAME:
23+
# PERSONAL_SYNC_FOLDER:
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v6
27+
28+
- name: Build client
29+
run: |
30+
mkdir -p build
31+
cd build
32+
cmake -G"Ninja" -DWITH_EXTERNAL_BRANDING=git@github.com:owncloud/client-desktop-theme-kiteworks.git -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=OFF -S ..
33+
ninja
34+
35+
- name: Install Python Modules
36+
run: |
37+
export PATH=$PATH:/github/home/.local/bin
38+
make -C test/gui install
39+
python3.10 -m pip list -v
40+
41+
- name: Create GUI test report directory
42+
run: |
43+
mkdir test/gui/guiReportUpload/screenshots -p
44+
chmod 777 test/gui -R

.github/workflows/changelog.yml

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
1-
name: Changelog
2-
3-
on:
4-
pull_request:
5-
push:
6-
branches: [ master ]
7-
tags: [ "*" ]
8-
9-
jobs:
10-
changelog:
11-
runs-on: ubuntu-latest
12-
permissions:
13-
contents: write
14-
pull-requests: read
15-
16-
steps:
17-
- name: Checkout
18-
uses: actions/checkout@v6
19-
with:
20-
ssh-key: ${{ secrets.DEPLOYMENT_SSH_KEY }}
21-
fetch-depth: 0
22-
23-
- name: Generate changelog
24-
uses: docker://toolhippie/calens:0.4.0
25-
with:
26-
entrypoint: /bin/sh
27-
args: -c "calens > CHANGELOG.md"
28-
29-
- name: Show diff
30-
run: git diff
31-
32-
- name: Output
33-
run: cat CHANGELOG.md
34-
35-
- name: Publish
36-
if: >
37-
github.event_name == 'push' &&
38-
github.ref == 'refs/heads/master' &&
39-
!startsWith(github.ref, 'refs/tags/') &&
40-
!startsWith(github.ref, 'refs/pull/')
41-
run: |
42-
git config user.name "ownClouders"
43-
git config user.email "devops@owncloud.com"
44-
git add CHANGELOG.md
45-
if git diff --staged --quiet; then
46-
echo "No changes to commit"
47-
exit 0
48-
fi
49-
git commit -m "Automated changelog update [skip ci]"
50-
git push origin master
1+
#name: Changelog
2+
#
3+
#on:
4+
# pull_request:
5+
# push:
6+
# branches: [ master ]
7+
# tags: [ "*" ]
8+
#
9+
#jobs:
10+
# changelog:
11+
# runs-on: ubuntu-latest
12+
# permissions:
13+
# contents: write
14+
# pull-requests: read
15+
#
16+
# steps:
17+
# - name: Checkout
18+
# uses: actions/checkout@v6
19+
# with:
20+
# ssh-key: ${{ secrets.DEPLOYMENT_SSH_KEY }}
21+
# fetch-depth: 0
22+
#
23+
# - name: Generate changelog
24+
# uses: docker://toolhippie/calens:0.4.0
25+
# with:
26+
# entrypoint: /bin/sh
27+
# args: -c "calens > CHANGELOG.md"
28+
#
29+
# - name: Show diff
30+
# run: git diff
31+
#
32+
# - name: Output
33+
# run: cat CHANGELOG.md
34+
#
35+
# - name: Publish
36+
# if: >
37+
# github.event_name == 'push' &&
38+
# github.ref == 'refs/heads/master' &&
39+
# !startsWith(github.ref, 'refs/tags/') &&
40+
# !startsWith(github.ref, 'refs/pull/')
41+
# run: |
42+
# git config user.name "ownClouders"
43+
# git config user.email "devops@owncloud.com"
44+
# git add CHANGELOG.md
45+
# if git diff --staged --quiet; then
46+
# echo "No changes to commit"
47+
# exit 0
48+
# fi
49+
# git commit -m "Automated changelog update [skip ci]"
50+
# git push origin master

0 commit comments

Comments
 (0)