Skip to content

Commit

Permalink
Fix CI after talk moved to main branch
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Müller <[email protected]>
  • Loading branch information
SystemKeeper committed Oct 31, 2023
1 parent abc99fa commit f13ff74
Showing 1 changed file with 10 additions and 24 deletions.
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"

0 comments on commit f13ff74

Please sign in to comment.