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

[stable30] chore(ci): update tests CI for stable30 #404

Open
wants to merge 3 commits into
base: stable30
Choose a base branch
from
Open
Show file tree
Hide file tree
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
36 changes: 16 additions & 20 deletions .github/workflows/tests-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name: Tests - Deploy

on:
pull_request:
branches: [stable30]
push:
branches: [main]
branches: [stable30]
workflow_dispatch:

permissions:
Expand All @@ -21,12 +22,7 @@ jobs:
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"
server-version: [ 'stable30' ]

services:
postgres:
Expand Down Expand Up @@ -155,7 +151,7 @@ jobs:
- name: Create container
run: |
docker network create master_bridge
docker run --net master_bridge --name nextcloud --rm -d -v /var/run/docker.sock:/var/run/docker.sock ${{ env.docker-image }}
docker run --net master_bridge --name nextcloud --rm -d -v /var/run/docker.sock:/var/run/docker.sock -e SERVER_BRANCH=stable30 ${{ env.docker-image }}
sudo chmod 766 /var/run/docker.sock
sleep 120s

Expand Down Expand Up @@ -235,7 +231,7 @@ jobs:
-e NC_HAPROXY_PASSWORD="some_secure_password" \
--net master_bridge --name nextcloud-appapi-dsp -h nextcloud-appapi-dsp \
--privileged -d ghcr.io/cloud-py-api/nextcloud-appapi-dsp:latest
docker run --net master_bridge --name nextcloud --rm -d ${{ env.docker-image }}
docker run --net master_bridge --name nextcloud --rm -d -e SERVER_BRANCH=stable30 ${{ env.docker-image }}
sleep 60s

- name: Install AppAPI
Expand Down Expand Up @@ -322,7 +318,7 @@ jobs:
-e EX_APPS_NET="ipv4@localhost" \
--net host --name nextcloud-appapi-dsp -h nextcloud-appapi-dsp \
--privileged -d ghcr.io/cloud-py-api/nextcloud-appapi-dsp:latest
docker run --net=bridge --name=nextcloud -p 8080:80 --rm -d ${{ env.docker-image }}
docker run --net=bridge --name=nextcloud -p 8080:80 -e SERVER_BRANCH=stable30 --rm -d ${{ env.docker-image }}
sleep 60s
hostname -I
docker exec nextcloud-appapi-dsp ip addr show | grep inet | awk '{print $2}' | cut -d/ -f1
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) • stable30 • 🐘8.1

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

- name: Checkout AppAPI
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
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_stable30_8.1_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_stable30_8.1_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_stable30_8.1_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) • stable30 • 🐘8.2

services:
postgres:
Expand All @@ -564,7 +560,7 @@ jobs:
with:
submodules: true
repository: nextcloud/server
ref: master
ref: stable30

- name: Checkout AppAPI
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
Expand Down Expand Up @@ -640,23 +636,23 @@ jobs:
if: always()
uses: actions/upload-artifact@v3
with:
name: nc_host_network_host_master_8.2_container.json
name: nc_host_network_host_stable30_8.2_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_network_host_master_8.2_container.log
name: nc_host_network_host_stable30_8.2_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_network_host_master_8.2_nextcloud.log
name: nc_host_network_host_stable30_8.2_nextcloud.log
path: data/nextcloud.log
if-no-files-found: warn

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,8 +2,9 @@ name: Tests Special

on:
pull_request:
branches: [stable30]
push:
branches: [main]
branches: [stable30]
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -50,7 +51,7 @@ jobs:
with:
submodules: true
repository: nextcloud/server
ref: 'stable28'
ref: 'stable30'

- name: Checkout AppAPI
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
Expand Down
28 changes: 12 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name: Tests

on:
pull_request:
branches: [stable30]
push:
branches: [main]
branches: [stable30]
workflow_dispatch:

permissions:
Expand All @@ -29,12 +30,7 @@ jobs:
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"
server-version: [ 'stable30' ]
env:
DATABASE_PGSQL: 1

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

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

services:
mysql:
Expand All @@ -182,13 +178,13 @@ jobs:
with:
submodules: true
repository: nextcloud/server
ref: stable28
ref: stable30

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

- name: Checkout AppAPI
Expand Down Expand Up @@ -265,13 +261,13 @@ jobs:
if: always()
uses: actions/upload-artifact@v3
with:
name: mysql_nc_py_api_stable28_8.1_nextcloud.log
name: mysql_nc_py_api_stable30_8.1_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 • stable30 • 8.1 • MySQL

services:
mysql:
Expand All @@ -295,13 +291,13 @@ jobs:
with:
submodules: true
repository: nextcloud/server
ref: stable29
ref: stable30

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

- name: Checkout AppAPI
Expand Down Expand Up @@ -381,7 +377,7 @@ 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_stable30_8.1_nextcloud.log
path: data/nextcloud.log
if-no-files-found: warn

Expand All @@ -391,7 +387,7 @@ jobs:
strategy:
fail-fast: false
matrix:
server-version: [ 'stable28', 'stable29' ]
server-version: [ 'stable30' ]

services:
oracle:
Expand Down
Loading