Skip to content

Commit

Permalink
fix(CI-stable30): final adjustments
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
  • Loading branch information
bigcat88 committed Oct 28, 2024
1 parent b5dd270 commit 1a34f77
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 26 deletions.
36 changes: 16 additions & 20 deletions .github/workflows/tests-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ concurrency:
jobs:
nc-host-app-docker:
runs-on: ubuntu-22.04
name: NC In Host • stable30 • 🐘${{ matrix.php-version }}
strategy:
fail-fast: false
matrix:
php-version: [ '8.1', '8.2', '8.3' ]
name: NC In Host • stable30 • 🐘8.2

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

- name: Set up php ${{ matrix.php-version }}
- name: Set up php
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
with:
php-version: ${{ matrix.php-version }}
php-version: 8.2
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 Expand Up @@ -115,23 +111,23 @@ jobs:
if: always()
uses: actions/upload-artifact@v3
with:
name: nc_host_app_docker_${{ matrix.server-version }}_${{ matrix.php-version }}_container.json
name: nc_host_app_docker_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_${{ matrix.server-version }}_${{ matrix.php-version }}_container.log
name: nc_host_app_docker_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_${{ matrix.server-version }}_${{ matrix.php-version }}_nextcloud.log
name: nc_host_app_docker_nextcloud.log
path: data/nextcloud.log
if-no-files-found: warn

Expand All @@ -154,7 +150,7 @@ jobs:
- name: Install AppAPI
run: |
docker exec -w /var/www/html/apps nextcloud git clone https://github.com/nextcloud/${{ env.APP_NAME }}.git -b ${{ github.head_ref }}
docker exec -w /var/www/html/apps nextcloud git clone https://github.com/nextcloud/${{ env.APP_NAME }}.git
docker exec -w /var/www/html/apps/${{ env.APP_NAME }} nextcloud git fetch origin $GITHUB_REF
docker exec -w /var/www/html/apps/${{ env.APP_NAME }} nextcloud git checkout FETCH_HEAD
docker exec nextcloud sudo -u www-data php occ app:enable app_api
Expand Down Expand Up @@ -233,7 +229,7 @@ jobs:
- name: Install AppAPI
run: |
docker exec -w /var/www/html/apps nextcloud git clone https://github.com/nextcloud/${{ env.APP_NAME }}.git -b ${{ github.head_ref }}
docker exec -w /var/www/html/apps nextcloud git clone https://github.com/nextcloud/${{ env.APP_NAME }}.git
docker exec -w /var/www/html/apps/${{ env.APP_NAME }} nextcloud git fetch origin $GITHUB_REF
docker exec -w /var/www/html/apps/${{ env.APP_NAME }} nextcloud git checkout FETCH_HEAD
docker exec nextcloud sudo -u www-data php occ app:enable app_api
Expand Down Expand Up @@ -322,7 +318,7 @@ jobs:
- name: Install AppAPI
run: |
docker exec -w /var/www/html/apps nextcloud git clone https://github.com/nextcloud/${{ env.APP_NAME }}.git -b ${{ github.head_ref }}
docker exec -w /var/www/html/apps nextcloud git clone https://github.com/nextcloud/${{ env.APP_NAME }}.git
docker exec -w /var/www/html/apps/${{ env.APP_NAME }} nextcloud git fetch origin $GITHUB_REF
docker exec -w /var/www/html/apps/${{ env.APP_NAME }} nextcloud git checkout FETCH_HEAD
docker exec nextcloud sudo -u www-data php occ app:enable app_api
Expand Down Expand Up @@ -434,7 +430,7 @@ jobs:
with:
path: apps/${{ env.APP_NAME }}

- name: Set up php 8.1
- name: Set up php
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
with:
php-version: 8.1
Expand Down Expand Up @@ -521,15 +517,15 @@ jobs:
if: always()
uses: actions/upload-artifact@v3
with:
name: nc_host_app_docker_redis_stable30_8.1_container.log
name: nc_host_app_docker_redis_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_stable30_8.1_nextcloud.log
name: nc_host_app_docker_redis_8.1_nextcloud.log
path: data/nextcloud.log
if-no-files-found: warn

Expand Down Expand Up @@ -564,7 +560,7 @@ jobs:
with:
path: apps/${{ env.APP_NAME }}

- name: Set up php 8.2
- name: Set up php
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
with:
php-version: 8.2
Expand Down Expand Up @@ -633,23 +629,23 @@ jobs:
if: always()
uses: actions/upload-artifact@v3
with:
name: nc_host_network_host_stable30_8.2_container.json
name: nc_host_network_host_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_stable30_8.2_container.log
name: nc_host_network_host_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_stable30_8.2_nextcloud.log
name: nc_host_network_host_8.2_nextcloud.log
path: data/nextcloud.log
if-no-files-found: warn

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
if: always()
uses: actions/upload-artifact@v3
with:
name: pgsql_nc_py_api_${{ matrix.server-version }}_${{ matrix.php-version }}_nextcloud.log
name: pgsql_nc_py_api_${{ matrix.php-version }}_nextcloud.log
path: data/nextcloud.log
if-no-files-found: warn

Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
with:
path: apps/${{ env.APP_NAME }}

- name: Set up php 8.1
- name: Set up php
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
with:
php-version: '8.1'
Expand Down Expand Up @@ -247,7 +247,7 @@ jobs:
if: always()
uses: actions/upload-artifact@v3
with:
name: mysql_nc_py_api_8.1_nextcloud.log
name: mysql_nc_py_api_nextcloud.log
path: data/nextcloud.log
if-no-files-found: warn

Expand Down Expand Up @@ -291,7 +291,7 @@ jobs:
with:
path: apps/${{ env.APP_NAME }}

- name: Set up php 8.1
- name: Set up php
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
with:
php-version: '8.1'
Expand Down Expand Up @@ -363,7 +363,7 @@ jobs:
if: always()
uses: actions/upload-artifact@v3
with:
name: apcu_mysql_nc_py_api_8.1_nextcloud.log
name: apcu_mysql_nc_py_api_nextcloud.log
path: data/nextcloud.log
if-no-files-found: warn

Expand Down Expand Up @@ -475,7 +475,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_nextcloud.log
path: data/nextcloud.log
if-no-files-found: warn

Expand Down

0 comments on commit 1a34f77

Please sign in to comment.