Skip to content

Commit

Permalink
chore: update tests CI for main branch (nextcloud#401)
Browse files Browse the repository at this point in the history
Update tests CI for main branch only

Signed-off-by: Andrey Borysenko <[email protected]>
  • Loading branch information
andrey18106 authored and janepie committed Sep 26, 2024
1 parent 338c8a3 commit c9b77c3
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 50 deletions.
42 changes: 19 additions & 23 deletions .github/workflows/tests-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Tests - Deploy

on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
Expand All @@ -20,13 +21,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: [ '8.1' ]
server-version: [ 'stable28' ]
include:
- server-version: "stable29"
php-version: "8.2"
- server-version: "master"
php-version: "8.3"
php-version: [ '8.3' ]
server-version: [ 'master' ]

services:
postgres:
Expand Down Expand Up @@ -144,9 +140,9 @@ jobs:

nc-docker-app-docker:
runs-on: ubuntu-22.04
name: NC In Julius Docker • 🐘8.1
name: NC In Julius Docker • 🐘8.3
env:
docker-image: ghcr.io/juliushaertl/nextcloud-dev-php81:20231202-1
docker-image: ghcr.io/juliushaertl/nextcloud-dev-php83:master

steps:
- name: Set app env
Expand Down Expand Up @@ -220,9 +216,9 @@ jobs:

nc-docker-dsp-http:
runs-on: ubuntu-22.04
name: NC In Julius Docker(DSP-HTTP) • 🐘8.1
name: NC In Julius Docker(DSP-HTTP) • 🐘8.3
env:
docker-image: ghcr.io/juliushaertl/nextcloud-dev-php81:20231202-1
docker-image: ghcr.io/juliushaertl/nextcloud-dev-php83:master

steps:
- name: Set app env
Expand Down Expand Up @@ -299,9 +295,9 @@ jobs:

nc-docker-dsp-https:
runs-on: ubuntu-22.04
name: NC In Julius Docker(DSP-HTTPS) • 🐘8.1
name: NC In Julius Docker(DSP-HTTPS) • 🐘8.3
env:
docker-image: ghcr.io/juliushaertl/nextcloud-dev-php81:20231202-1
docker-image: ghcr.io/juliushaertl/nextcloud-dev-php83:master

steps:
- name: Set app env
Expand Down Expand Up @@ -402,7 +398,7 @@ jobs:

nc-host-app-docker-redis:
runs-on: ubuntu-22.04
name: NC In Host(Redis) • stable28 • 🐘8.1
name: NC In Host(Redis) • master • 🐘8.3

services:
postgres:
Expand Down Expand Up @@ -434,17 +430,17 @@ jobs:
with:
submodules: true
repository: nextcloud/server
ref: stable28
ref: master

- name: Checkout AppAPI
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
path: apps/${{ env.APP_NAME }}

- name: Set up php 8.1
- name: Set up php 8.3
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
with:
php-version: 8.1
php-version: 8.3
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, pgsql, pdo_pgsql, redis
coverage: none
ini-file: development
Expand Down Expand Up @@ -520,29 +516,29 @@ jobs:
if: always()
uses: actions/upload-artifact@v3
with:
name: nc_host_app_docker_redis_stable28_8.1_container.json
name: nc_host_app_docker_redis_master_8.3_container.json
path: container.json
if-no-files-found: warn

- name: Upload Container logs
if: always()
uses: actions/upload-artifact@v3
with:
name: nc_host_app_docker_redis_stable28_8.1_container.log
name: nc_host_app_docker_redis_master_8.3_container.log
path: container.log
if-no-files-found: warn

- name: Upload NC logs
if: always()
uses: actions/upload-artifact@v3
with:
name: nc_host_app_docker_redis_stable28_8.1_nextcloud.log
name: nc_host_app_docker_redis_master_8.3_nextcloud.log
path: data/nextcloud.log
if-no-files-found: warn

nc-host-network-host:
runs-on: ubuntu-22.04
name: NC In Host(network=host) • master • 🐘8.2
name: NC In Host(network=host) • master • 🐘8.3

services:
postgres:
Expand Down Expand Up @@ -571,10 +567,10 @@ jobs:
with:
path: apps/${{ env.APP_NAME }}

- name: Set up php 8.2
- name: Set up php 8.3
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
with:
php-version: 8.2
php-version: 8.3
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, pgsql, pdo_pgsql, redis
coverage: none
ini-file: development
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/tests-special.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Tests Special

on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
Expand Down Expand Up @@ -50,7 +51,7 @@ jobs:
with:
submodules: true
repository: nextcloud/server
ref: 'stable28'
ref: 'master'

- name: Checkout AppAPI
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
Expand All @@ -60,7 +61,7 @@ jobs:
- name: Set up php
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
with:
php-version: '8.1'
php-version: '8.3'
extensions: 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
Expand Down
46 changes: 21 additions & 25 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Tests

on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
Expand All @@ -28,13 +29,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: [ '8.1' ]
server-version: [ 'stable28' ]
include:
- server-version: "stable29"
php-version: "8.2"
- server-version: "master"
php-version: "8.3"
php-version: [ '8.3' ]
server-version: [ 'master' ]
env:
DATABASE_PGSQL: 1

Expand Down Expand Up @@ -158,11 +154,11 @@ jobs:

nc-py-api-mysql:
runs-on: ubuntu-22.04
name: NC_Py_API • stable28 • 8.1 • MySQL
name: NC_Py_API • master • 8.3 • MySQL

services:
mysql:
image: ghcr.io/nextcloud/continuous-integration-mysql-8.1:latest
image: ghcr.io/nextcloud/continuous-integration-mysql-8.3:latest
ports:
- 4444:3306/tcp
env:
Expand All @@ -182,24 +178,24 @@ jobs:
with:
submodules: true
repository: nextcloud/server
ref: stable28
ref: master

- name: Checkout Notifications
uses: actions/checkout@v3
with:
repository: nextcloud/notifications
ref: stable28
ref: master
path: apps/notifications

- name: Checkout AppAPI
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
path: apps/${{ env.APP_NAME }}

- name: Set up php 8.1
- name: Set up php 8.3
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
with:
php-version: '8.1'
php-version: '8.3'
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, mysql, pdo_mysql
coverage: none
ini-file: development
Expand Down Expand Up @@ -265,17 +261,17 @@ jobs:
if: always()
uses: actions/upload-artifact@v3
with:
name: mysql_nc_py_api_stable28_8.1_nextcloud.log
name: mysql_nc_py_api_master_8.3_nextcloud.log
path: data/nextcloud.log
if-no-files-found: warn

nc-py-api-mysql-apcu:
runs-on: ubuntu-22.04
name: APCu • NC_Py_API • stable29 • 8.1 • MySQL
name: APCu • NC_Py_API • master • 8.3 • MySQL

services:
mysql:
image: ghcr.io/nextcloud/continuous-integration-mysql-8.1:latest
image: ghcr.io/nextcloud/continuous-integration-mysql-8.3:latest
ports:
- 4444:3306/tcp
env:
Expand All @@ -295,24 +291,24 @@ jobs:
with:
submodules: true
repository: nextcloud/server
ref: stable29
ref: master

- name: Checkout Notifications
uses: actions/checkout@v3
with:
repository: nextcloud/notifications
ref: stable28
ref: master
path: apps/notifications

- name: Checkout AppAPI
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
path: apps/${{ env.APP_NAME }}

- name: Set up php 8.1
- name: Set up php 8.3
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
with:
php-version: '8.1'
php-version: '8.3'
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, mysql, pdo_mysql, apcu
coverage: none
ini-file: development
Expand Down Expand Up @@ -381,17 +377,17 @@ jobs:
if: always()
uses: actions/upload-artifact@v3
with:
name: apcu_mysql_nc_py_api_stable29_8.1_nextcloud.log
name: apcu_mysql_nc_py_api_master_8.3_nextcloud.log
path: data/nextcloud.log
if-no-files-found: warn

nc-py-api-oci:
runs-on: ubuntu-22.04
name: NC_Py_API • ${{ matrix.server-version }} • 8.2 • Oracle
name: NC_Py_API • ${{ matrix.server-version }} • 8.3 • Oracle
strategy:
fail-fast: false
matrix:
server-version: [ 'stable28', 'stable29' ]
server-version: [ 'master' ]

services:
oracle:
Expand Down Expand Up @@ -438,7 +434,7 @@ jobs:
- name: Set up php
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.3'
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, \
posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, oci8

Expand Down Expand Up @@ -497,7 +493,7 @@ jobs:
if: always()
uses: actions/upload-artifact@v3
with:
name: oci_nc_py_api_${{ matrix.server-version }}_8.2_nextcloud.log
name: oci_nc_py_api_${{ matrix.server-version }}_8.3_nextcloud.log
path: data/nextcloud.log
if-no-files-found: warn

Expand Down

0 comments on commit c9b77c3

Please sign in to comment.