Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI after talk moved to main branch #1406

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 10 additions & 24 deletions .github/workflows/uitests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,16 @@ jobs:
strategy:
matrix:
# Test with stable23 as well to find regressions in older versions
test-branches: ['stable23', 'stable27', 'master']
configs: [
{ talkbranch: 'stable23', serverbranch: 'stable23', phpversion: '8.0' },
{ talkbranch: 'stable27', serverbranch: 'stable27', phpversion: '8.2' },
{ talkbranch: 'main', serverbranch: 'master', phpversion: '8.2' }
]

env:
WORKSPACE: NextcloudTalk.xcworkspace
DESTINATION: platform=iOS Simulator,name=iPhone 14,OS=16.2
SCHEME: NextcloudTalk
TEST_BRANCH: ${{ matrix.test-branches }}
CONTAINER_NAME: nextcloud_test
SERVER_PORT: 8080

steps:
- name: Checkout app
Expand All @@ -55,11 +56,10 @@ jobs:
restore-keys: |
${{ runner.os }}-pods-
- name: Set up php 8.2
- name: Set up php ${{ matrix.configs.phpversion }}
uses: shivammathur/setup-php@c5fc0d8281aba02c7fda07d3a70cc5371548067d # v2
if: matrix.test-branches != 'stable23'
with:
php-version: 8.2
php-version: ${{ matrix.configs.phpversion }}
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
extensions: apcu, bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, pgsql, pdo_pgsql
coverage: none
Expand All @@ -69,34 +69,20 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set up php 8.0
uses: shivammathur/setup-php@c5fc0d8281aba02c7fda07d3a70cc5371548067d # v2
if: matrix.test-branches == 'stable23'
with:
php-version: 8.0
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
extensions: apcu, bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, pgsql, pdo_pgsql
coverage: none
ini-file: development
# Temporary workaround for missing pcntl_* in PHP 8.3: ini-values: apc.enable_cli=on
ini-values: apc.enable_cli=on, disable_functions=
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout server
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
submodules: true
repository: nextcloud/server
path: server
ref: ${{ matrix.test-branches }}
ref: ${{ matrix.configs.serverbranch }}

- name: Checkout Talk
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
repository: nextcloud/spreed
path: server/apps/spreed
ref: ${{ matrix.test-branches }}
ref: ${{ matrix.configs.talkbranch }}

- name: Set up production dependencies
working-directory: server/apps/spreed
Expand Down Expand Up @@ -130,5 +116,5 @@ jobs:
uses: actions/upload-artifact@v3
if: ${{ !cancelled() }}
with:
name: testResults-${{ matrix.test-branches }}.xcresult
name: testResults-${{ matrix.configs.talkbranch }}.xcresult
path: "testResult.xcresult"
Loading