Skip to content

Commit d5b3c28

Browse files
committed
chore: update workflows from templates
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent fbd16fe commit d5b3c28

14 files changed

+81
-52
lines changed

.github/workflows/appstore-build-publish.yml

+11-8
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ on:
99
release:
1010
types: [published]
1111

12-
env:
13-
PHP_VERSION: 8.2
14-
1512
jobs:
1613
build_and_publish:
1714
runs-on: ubuntu-latest
@@ -56,7 +53,7 @@ jobs:
5653
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
5754
# Skip if no package.json
5855
if: ${{ steps.versions.outputs.nodeVersion }}
59-
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
56+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
6057
with:
6158
node-version: ${{ steps.versions.outputs.nodeVersion }}
6259

@@ -65,10 +62,16 @@ jobs:
6562
if: ${{ steps.versions.outputs.npmVersion }}
6663
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
6764

68-
- name: Set up php ${{ env.PHP_VERSION }}
69-
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2
65+
- name: Get php version
66+
id: php-versions
67+
uses: icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.3.1
68+
with:
69+
filename: ${{ env.APP_NAME }}/appinfo/info.xml
70+
71+
- name: Set up php ${{ steps.php-versions.outputs.php-min }}
72+
uses: shivammathur/setup-php@a4e22b60bbb9c1021113f2860347b0759f66fe5d # v2
7073
with:
71-
php-version: ${{ env.PHP_VERSION }}
74+
php-version: ${{ steps.php-versions.outputs.php-min }}
7275
coverage: none
7376
env:
7477
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -151,7 +154,7 @@ jobs:
151154
tar -zcvf ${{ env.APP_NAME }}.tar.gz ${{ env.APP_NAME }}
152155
153156
- name: Attach tarball to github release
154-
uses: svenstaro/upload-release-action@1beeb572c19a9242f4361f4cee78f8e0d9aec5df # v2
157+
uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # v2
155158
id: attach_to_release
156159
with:
157160
repo_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/lint-eslint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
src: ${{ steps.changes.outputs.src}}
2626

2727
steps:
28-
- uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd # v3.0.0
28+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
2929
id: changes
3030
continue-on-error: true
3131
with:
@@ -63,7 +63,7 @@ jobs:
6363
fallbackNpm: '^10'
6464

6565
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
66-
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
66+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
6767
with:
6868
node-version: ${{ steps.versions.outputs.nodeVersion }}
6969

.github/workflows/lint-php-cs.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@ jobs:
2424
- name: Checkout
2525
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2626

27-
- name: Set up php8.2
28-
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2
27+
- name: Get php version
28+
id: versions
29+
uses: icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.3.1
30+
31+
- name: Set up php${{ steps.versions.outputs.php-available }}
32+
uses: shivammathur/setup-php@a4e22b60bbb9c1021113f2860347b0759f66fe5d # v2
2933
with:
30-
php-version: 8.2
34+
php-version: ${{ steps.versions.outputs.php-available }}
3135
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
3236
coverage: none
3337
ini-file: development

.github/workflows/lint-php.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,23 @@ concurrency:
1515
cancel-in-progress: true
1616

1717
jobs:
18+
matrix:
19+
runs-on: ubuntu-latest-low
20+
outputs:
21+
php-versions: ${{ steps.versions.outputs.php-versions }}
22+
steps:
23+
- name: Checkout app
24+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
25+
- name: Get version matrix
26+
id: versions
27+
uses: icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.0.0
28+
1829
php-lint:
1930
runs-on: ubuntu-latest
31+
needs: matrix
2032
strategy:
2133
matrix:
22-
php-versions: [ '8.0', '8.1', '8.2', '8.3' ]
34+
php-versions: ${{fromJson(needs.matrix.outputs.php-versions)}}
2335

2436
name: php-lint
2537

@@ -28,7 +40,7 @@ jobs:
2840
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2941

3042
- name: Set up php ${{ matrix.php-versions }}
31-
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2
43+
uses: shivammathur/setup-php@a4e22b60bbb9c1021113f2860347b0759f66fe5d # v2
3244
with:
3345
php-version: ${{ matrix.php-versions }}
3446
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite

.github/workflows/lint-stylelint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
fallbackNpm: '^10'
3333

3434
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
35-
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
35+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
3636
with:
3737
node-version: ${{ steps.versions.outputs.nodeVersion }}
3838

.github/workflows/node.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
src: ${{ steps.changes.outputs.src}}
2323

2424
steps:
25-
- uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd # v3.0.0
25+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
2626
id: changes
2727
continue-on-error: true
2828
with:
@@ -57,7 +57,7 @@ jobs:
5757
fallbackNpm: '^10'
5858

5959
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
60-
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
60+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
6161
with:
6262
node-version: ${{ steps.versions.outputs.nodeVersion }}
6363

.github/workflows/phpunit-mariadb.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# https://github.com/nextcloud/.github
44
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
55

6-
name: PHPUnit mariadb
6+
name: PHPUnit MariaDB
77

88
on: pull_request
99

@@ -18,15 +18,15 @@ jobs:
1818
matrix:
1919
runs-on: ubuntu-latest-low
2020
outputs:
21-
php-max: ${{ steps.versions.outputs.php-max-list }}
21+
php-version: ${{ steps.versions.outputs.php-available-list }}
2222
server-max: ${{ steps.versions.outputs.branches-max-list }}
2323
steps:
2424
- name: Checkout app
2525
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2626

2727
- name: Get version matrix
2828
id: versions
29-
uses: icewind1991/nextcloud-version-matrix@d594a6929da316b732c53355e52a1ead77ba36c7 # v1.2.0
29+
uses: icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.3.1
3030

3131
changes:
3232
runs-on: ubuntu-latest-low
@@ -35,7 +35,7 @@ jobs:
3535
src: ${{ steps.changes.outputs.src}}
3636

3737
steps:
38-
- uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd # v3.0.0
38+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
3939
id: changes
4040
continue-on-error: true
4141
with:
@@ -60,7 +60,7 @@ jobs:
6060

6161
strategy:
6262
matrix:
63-
php-versions: ${{ fromJson(needs.matrix.outputs.php-max) }}
63+
php-versions: ${{ fromJson(needs.matrix.outputs.php-version) }}
6464
server-versions: ${{ fromJson(needs.matrix.outputs.server-max) }}
6565
mariadb-versions: ['10.6', '10.11']
6666

@@ -94,7 +94,7 @@ jobs:
9494
path: apps/${{ env.APP_NAME }}
9595

9696
- name: Set up php ${{ matrix.php-versions }}
97-
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2
97+
uses: shivammathur/setup-php@a4e22b60bbb9c1021113f2860347b0759f66fe5d # v2
9898
with:
9999
php-version: ${{ matrix.php-versions }}
100100
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

.github/workflows/phpunit-mysql.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
- name: Get version matrix
2727
id: versions
28-
uses: icewind1991/nextcloud-version-matrix@d594a6929da316b732c53355e52a1ead77ba36c7 # v1.2.0
28+
uses: icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.3.1
2929
with:
3030
matrix: '{"mysql-versions": ["8.1"]}'
3131

@@ -36,7 +36,7 @@ jobs:
3636
src: ${{ steps.changes.outputs.src}}
3737

3838
steps:
39-
- uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd # v3.0.0
39+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
4040
id: changes
4141
continue-on-error: true
4242
with:
@@ -92,7 +92,7 @@ jobs:
9292
path: apps/${{ env.APP_NAME }}
9393

9494
- name: Set up php ${{ matrix.php-versions }}
95-
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2
95+
uses: shivammathur/setup-php@a4e22b60bbb9c1021113f2860347b0759f66fe5d # v2
9696
with:
9797
php-version: ${{ matrix.php-versions }}
9898
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

.github/workflows/phpunit-oci.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ jobs:
1818
matrix:
1919
runs-on: ubuntu-latest-low
2020
outputs:
21-
php-max: ${{ steps.versions.outputs.php-max-list }}
21+
php-version: ${{ steps.versions.outputs.php-available-list }}
2222
server-max: ${{ steps.versions.outputs.branches-max-list }}
2323
steps:
2424
- name: Checkout app
2525
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2626

2727
- name: Get version matrix
2828
id: versions
29-
uses: icewind1991/nextcloud-version-matrix@d594a6929da316b732c53355e52a1ead77ba36c7 # v1.2.0
29+
uses: icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.3.1
3030

3131
changes:
3232
runs-on: ubuntu-latest-low
@@ -35,7 +35,7 @@ jobs:
3535
src: ${{ steps.changes.outputs.src}}
3636

3737
steps:
38-
- uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd # v3.0.0
38+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
3939
id: changes
4040
continue-on-error: true
4141
with:
@@ -60,9 +60,11 @@ jobs:
6060

6161
strategy:
6262
matrix:
63-
php-versions: ${{ fromJson(needs.matrix.outputs.php-max) }}
63+
php-versions: ${{ fromJson(needs.matrix.outputs.php-version) }}
6464
server-versions: ${{ fromJson(needs.matrix.outputs.server-max) }}
6565

66+
name: OCI PHP ${{ matrix.php-versions }} Nextcloud ${{ matrix.server-versions }}
67+
6668
services:
6769
oracle:
6870
image: ghcr.io/gvenzl/oracle-xe:11
@@ -103,7 +105,7 @@ jobs:
103105
path: apps/${{ env.APP_NAME }}
104106

105107
- name: Set up php ${{ matrix.php-versions }}
106-
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2
108+
uses: shivammathur/setup-php@a4e22b60bbb9c1021113f2860347b0759f66fe5d # v2
107109
with:
108110
php-version: ${{ matrix.php-versions }}
109111
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

.github/workflows/phpunit-pgsql.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# https://github.com/nextcloud/.github
44
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
55

6-
name: PHPUnit pgsql
6+
name: PHPUnit PostgreSQL
77

88
on: pull_request
99

@@ -18,15 +18,15 @@ jobs:
1818
matrix:
1919
runs-on: ubuntu-latest-low
2020
outputs:
21-
php-max: ${{ steps.versions.outputs.php-max-list }}
21+
php-version: ${{ steps.versions.outputs.php-available-list }}
2222
server-max: ${{ steps.versions.outputs.branches-max-list }}
2323
steps:
2424
- name: Checkout app
2525
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2626

2727
- name: Get version matrix
2828
id: versions
29-
uses: icewind1991/nextcloud-version-matrix@d594a6929da316b732c53355e52a1ead77ba36c7 # v1.2.0
29+
uses: icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.3.1
3030

3131
changes:
3232
runs-on: ubuntu-latest-low
@@ -35,7 +35,7 @@ jobs:
3535
src: ${{ steps.changes.outputs.src}}
3636

3737
steps:
38-
- uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd # v3.0.0
38+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
3939
id: changes
4040
continue-on-error: true
4141
with:
@@ -60,9 +60,11 @@ jobs:
6060

6161
strategy:
6262
matrix:
63-
php-versions: ${{ fromJson(needs.matrix.outputs.php-max) }}
63+
php-versions: ${{ fromJson(needs.matrix.outputs.php-version) }}
6464
server-versions: ${{ fromJson(needs.matrix.outputs.server-max) }}
6565

66+
name: PostgreSQL PHP ${{ matrix.php-versions }} Nextcloud ${{ matrix.server-versions }}
67+
6668
services:
6769
postgres:
6870
image: ghcr.io/nextcloud/continuous-integration-postgres-14:latest
@@ -93,7 +95,7 @@ jobs:
9395
path: apps/${{ env.APP_NAME }}
9496

9597
- name: Set up php ${{ matrix.php-versions }}
96-
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2
98+
uses: shivammathur/setup-php@a4e22b60bbb9c1021113f2860347b0759f66fe5d # v2
9799
with:
98100
php-version: ${{ matrix.php-versions }}
99101
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

.github/workflows/phpunit-sqlite.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# https://github.com/nextcloud/.github
44
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
55

6-
name: PHPUnit sqlite
6+
name: PHPUnit SQLite
77

88
on: pull_request
99

@@ -18,15 +18,15 @@ jobs:
1818
matrix:
1919
runs-on: ubuntu-latest-low
2020
outputs:
21-
php-max: ${{ steps.versions.outputs.php-max-list }}
21+
php-version: ${{ steps.versions.outputs.php-available-list }}
2222
server-max: ${{ steps.versions.outputs.branches-max-list }}
2323
steps:
2424
- name: Checkout app
2525
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2626

2727
- name: Get version matrix
2828
id: versions
29-
uses: icewind1991/nextcloud-version-matrix@d594a6929da316b732c53355e52a1ead77ba36c7 # v1.2.0
29+
uses: icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.3.1
3030

3131
changes:
3232
runs-on: ubuntu-latest-low
@@ -35,7 +35,7 @@ jobs:
3535
src: ${{ steps.changes.outputs.src}}
3636

3737
steps:
38-
- uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd # v3.0.0
38+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
3939
id: changes
4040
continue-on-error: true
4141
with:
@@ -60,9 +60,11 @@ jobs:
6060

6161
strategy:
6262
matrix:
63-
php-versions: ${{ fromJson(needs.matrix.outputs.php-max) }}
63+
php-versions: ${{ fromJson(needs.matrix.outputs.php-version) }}
6464
server-versions: ${{ fromJson(needs.matrix.outputs.server-max) }}
6565

66+
name: SQLite PHP ${{ matrix.php-versions }} Nextcloud ${{ matrix.server-versions }}
67+
6668
steps:
6769
- name: Set app env
6870
run: |
@@ -82,7 +84,7 @@ jobs:
8284
path: apps/${{ env.APP_NAME }}
8385

8486
- name: Set up php ${{ matrix.php-versions }}
85-
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2
87+
uses: shivammathur/setup-php@a4e22b60bbb9c1021113f2860347b0759f66fe5d # v2
8688
with:
8789
php-version: ${{ matrix.php-versions }}
8890
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

0 commit comments

Comments
 (0)