Merge pull request #5401 from nextcloud/automated/update-workflows/default

chore: update workflows from templates
This commit is contained in:
Julius Härtl
2023-12-28 15:43:13 +01:00
committed by GitHub
13 changed files with 41 additions and 67 deletions

View File

@@ -10,7 +10,7 @@ on:
types: [published] types: [published]
env: env:
PHP_VERSION: 8.1 PHP_VERSION: 8.2
jobs: jobs:
build_and_publish: build_and_publish:
@@ -56,7 +56,7 @@ jobs:
- name: Set up node ${{ steps.versions.outputs.nodeVersion }} - name: Set up node ${{ steps.versions.outputs.nodeVersion }}
# Skip if no package.json # Skip if no package.json
if: ${{ steps.versions.outputs.nodeVersion }} if: ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3 uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v3
with: with:
node-version: ${{ steps.versions.outputs.nodeVersion }} node-version: ${{ steps.versions.outputs.nodeVersion }}
@@ -66,7 +66,7 @@ jobs:
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}" run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
- name: Set up php ${{ env.PHP_VERSION }} - name: Set up php ${{ env.PHP_VERSION }}
uses: shivammathur/setup-php@2.28.0 # v2 uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
with: with:
php-version: ${{ env.PHP_VERSION }} php-version: ${{ env.PHP_VERSION }}
coverage: none coverage: none

View File

@@ -8,8 +8,7 @@
name: Lint eslint name: Lint eslint
on: on: pull_request
pull_request:
permissions: permissions:
contents: read contents: read
@@ -64,7 +63,7 @@ jobs:
fallbackNpm: '^9' fallbackNpm: '^9'
- name: Set up node ${{ steps.versions.outputs.nodeVersion }} - name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3 uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v3
with: with:
node-version: ${{ steps.versions.outputs.nodeVersion }} node-version: ${{ steps.versions.outputs.nodeVersion }}
@@ -74,6 +73,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
env: env:
CYPRESS_INSTALL_BINARY: 0 CYPRESS_INSTALL_BINARY: 0
PUPPETEER_SKIP_DOWNLOAD: true
run: npm ci run: npm ci
- name: Lint - name: Lint

View File

@@ -24,10 +24,10 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up php - name: Set up php8.2
uses: shivammathur/setup-php@2.28.0 # v2 uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
with: with:
php-version: 8.1 php-version: 8.2
coverage: none coverage: none
ini-file: development ini-file: development
env: env:

View File

@@ -5,13 +5,7 @@
name: Lint php name: Lint php
on: on: pull_request
pull_request:
push:
branches:
- main
- master
- stable*
permissions: permissions:
contents: read contents: read
@@ -25,7 +19,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
php-versions: [ "8.0", "8.1", "8.2" ] php-versions: [ '8.0', '8.1', '8.2', '8.3' ]
name: php-lint name: php-lint
@@ -34,7 +28,7 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up php ${{ matrix.php-versions }} - name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@2.28.0 # v2 uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
with: with:
php-version: ${{ matrix.php-versions }} php-version: ${{ matrix.php-versions }}
coverage: none coverage: none

View File

@@ -32,7 +32,7 @@ jobs:
fallbackNpm: '^9' fallbackNpm: '^9'
- name: Set up node ${{ steps.versions.outputs.nodeVersion }} - name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3 uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v3
with: with:
node-version: ${{ steps.versions.outputs.nodeVersion }} node-version: ${{ steps.versions.outputs.nodeVersion }}

View File

@@ -18,7 +18,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
branches: ["main", "master", "stable28", "stable27", "stable26", "stable25", "stable24"] branches: ['main', 'master', 'stable28', 'stable27', 'stable26']
name: npm-audit-fix-${{ matrix.branches }} name: npm-audit-fix-${{ matrix.branches }}
@@ -36,7 +36,7 @@ jobs:
fallbackNpm: '^9' fallbackNpm: '^9'
- name: Set up node ${{ steps.versions.outputs.nodeVersion }} - name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3 uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v3
with: with:
node-version: ${{ steps.versions.outputs.nodeVersion }} node-version: ${{ steps.versions.outputs.nodeVersion }}

View File

@@ -3,15 +3,9 @@
# https://github.com/nextcloud/.github # https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
name: PHPUnit mysql name: PHPUnit MySQL
on: on: pull_request
pull_request:
push:
branches:
- main
- master
- stable*
permissions: permissions:
contents: read contents: read
@@ -55,10 +49,13 @@ jobs:
matrix: matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3'] php-versions: ['8.0', '8.1', '8.2', '8.3']
server-versions: ['master'] server-versions: ['master']
mysql-versions: ['8.1']
name: MySQL ${{ matrix.mysql-versions }} PHP ${{ matrix.php-versions }} Nextcloud ${{ matrix.server-versions }}
services: services:
mysql: mysql:
image: ghcr.io/nextcloud/continuous-integration-mariadb-10.6:latest image: ghcr.io/nextcloud/continuous-integration-mysql-${{ matrix.mysql-versions }}:latest
ports: ports:
- 4444:3306/tcp - 4444:3306/tcp
env: env:
@@ -84,7 +81,7 @@ jobs:
path: apps/${{ env.APP_NAME }} path: apps/${{ env.APP_NAME }}
- name: Set up php ${{ matrix.php-versions }} - name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@e8cd65f444039503a75cf4057d55442fc4316f78 # v2 uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
with: with:
php-version: ${{ matrix.php-versions }} php-version: ${{ matrix.php-versions }}
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation # https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

View File

@@ -5,13 +5,7 @@
name: PHPUnit pgsql name: PHPUnit pgsql
on: on: pull_request
pull_request:
push:
branches:
- main
- master
- stable*
permissions: permissions:
contents: read contents: read
@@ -53,7 +47,7 @@ jobs:
strategy: strategy:
matrix: matrix:
php-versions: ['8.0'] php-versions: ['8.2']
server-versions: ['master'] server-versions: ['master']
services: services:
@@ -86,7 +80,7 @@ jobs:
path: apps/${{ env.APP_NAME }} path: apps/${{ env.APP_NAME }}
- name: Set up php ${{ matrix.php-versions }} - name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@e8cd65f444039503a75cf4057d55442fc4316f78 # v2 uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
with: with:
php-version: ${{ matrix.php-versions }} php-version: ${{ matrix.php-versions }}
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation # https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

View File

@@ -5,13 +5,7 @@
name: PHPUnit sqlite name: PHPUnit sqlite
on: on: pull_request
pull_request:
push:
branches:
- main
- master
- stable*
permissions: permissions:
contents: read contents: read
@@ -53,7 +47,7 @@ jobs:
strategy: strategy:
matrix: matrix:
php-versions: ['8.0'] php-versions: ['8.2']
server-versions: ['master'] server-versions: ['master']
steps: steps:
@@ -75,7 +69,7 @@ jobs:
path: apps/${{ env.APP_NAME }} path: apps/${{ env.APP_NAME }}
- name: Set up php ${{ matrix.php-versions }} - name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@e8cd65f444039503a75cf4057d55442fc4316f78 # v2 uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
with: with:
php-version: ${{ matrix.php-versions }} php-version: ${{ matrix.php-versions }}
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation # https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

View File

@@ -30,5 +30,5 @@ jobs:
Thank you for contributing to Nextcloud and we hope to hear from you soon! Thank you for contributing to Nextcloud and we hope to hear from you soon!
days-before-feedback: 14 days-before-feedback: 14
start-date: "2023-07-10" start-date: "2023-07-10"
exempt-authors: "${{ steps.scrape.outputs.users }},nextcloud-command,nextcloud-android-bot,skjnldsv" exempt-authors: "${{ steps.scrape.outputs.users }},nextcloud-command,nextcloud-android-bot,skjnldsv,datenangebot"
exempt-bots: true exempt-bots: true

View File

@@ -5,13 +5,7 @@
name: Static analysis name: Static analysis
on: on: pull_request
pull_request:
push:
branches:
- master
- main
- stable*
concurrency: concurrency:
group: psalm-${{ github.head_ref || github.run_id }} group: psalm-${{ github.head_ref || github.run_id }}
@@ -21,15 +15,15 @@ jobs:
static-analysis: static-analysis:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Nextcloud name: static-psalm-analysis
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up php - name: Set up php8.2
uses: shivammathur/setup-php@2.28.0 # v2 uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
with: with:
php-version: 8.1 php-version: 8.2
coverage: none coverage: none
ini-file: development ini-file: development
env: env:

View File

@@ -43,7 +43,7 @@ jobs:
# Enable GitHub auto merge # Enable GitHub auto merge
- name: Auto merge - name: Auto merge
uses: alexwilson/enable-github-automerge-action@4871a27d951e570b6f5ccecbe98ec27ef27e0cbd # main uses: alexwilson/enable-github-automerge-action@f3e77fa17ba5a11771671361c01f382322c6db03 # main
if: startsWith(steps.branchname.outputs.branch, 'automated/noid/') && endsWith(steps.branchname.outputs.branch, 'update-nextcloud-ocp') if: startsWith(steps.branchname.outputs.branch, 'automated/noid/') && endsWith(steps.branchname.outputs.branch, 'update-nextcloud-ocp')
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -17,7 +17,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
branches: ["main", "master", "stable28", "stable27", "stable26"] branches: ['main', 'master', 'stable28', 'stable27', 'stable26']
name: update-nextcloud-ocp-${{ matrix.branches }} name: update-nextcloud-ocp-${{ matrix.branches }}
@@ -29,10 +29,11 @@ jobs:
submodules: true submodules: true
continue-on-error: true continue-on-error: true
- name: Set up php8.1 - name: Set up php8.2
uses: shivammathur/setup-php@2.28.0 # v2 if: steps.checkout.outcome == 'success'
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
with: with:
php-version: 8.1 php-version: 8.2
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation # https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
coverage: none coverage: none