Skip to content

Commit ca28ce7

Browse files
Merge pull request #470 from nextcloud/automated/update-workflows/default
chore: update workflows from templates
2 parents 3b04efd + c2abbc3 commit ca28ce7

16 files changed

+136
-70
lines changed

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
steps:
2323
- name: Check actor permission
24-
uses: skjnldsv/check-actor-permission@e591dbfe838300c007028e1219ca82cc26e8d7c5 # v2.1
24+
uses: skjnldsv/check-actor-permission@69e92a3c4711150929bca9fcf34448c5bf5526e7 # v3.0
2525
with:
2626
require: write
2727

@@ -51,12 +51,12 @@ jobs:
5151
with:
5252
path: ${{ env.APP_NAME }}
5353
fallbackNode: '^20'
54-
fallbackNpm: '^9'
54+
fallbackNpm: '^10'
5555

5656
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
5757
# Skip if no package.json
5858
if: ${{ steps.versions.outputs.nodeVersion }}
59-
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v3
59+
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
6060
with:
6161
node-version: ${{ steps.versions.outputs.nodeVersion }}
6262

@@ -66,7 +66,7 @@ jobs:
6666
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
6767

6868
- name: Set up php ${{ env.PHP_VERSION }}
69-
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
69+
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2
7070
with:
7171
php-version: ${{ env.PHP_VERSION }}
7272
coverage: none
@@ -75,7 +75,7 @@ jobs:
7575

7676
- name: Check composer.json
7777
id: check_composer
78-
uses: andstor/file-existence-action@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2
78+
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v2
7979
with:
8080
files: "${{ env.APP_NAME }}/composer.json"
8181

@@ -97,7 +97,7 @@ jobs:
9797
9898
- name: Check Krankerl config
9999
id: krankerl
100-
uses: andstor/file-existence-action@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2
100+
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v2
101101
with:
102102
files: ${{ env.APP_NAME }}/krankerl.toml
103103

.github/workflows/dependabot-approve-merge.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ concurrency:
2222
jobs:
2323
auto-approve-merge:
2424
if: github.actor == 'dependabot[bot]'
25-
runs-on: ubuntu-latest
25+
runs-on: ubuntu-latest-low
2626
permissions:
2727
# for hmarr/auto-approve-action to approve PRs
2828
pull-requests: write

.github/workflows/lint-eslint.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ concurrency:
1919

2020
jobs:
2121
changes:
22-
runs-on: ubuntu-latest
22+
runs-on: ubuntu-latest-low
2323

2424
outputs:
2525
src: ${{ steps.changes.outputs.src}}
2626

2727
steps:
28-
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
28+
- uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd # v3.0.0
2929
id: changes
3030
continue-on-error: true
3131
with:
@@ -60,10 +60,10 @@ jobs:
6060
id: versions
6161
with:
6262
fallbackNode: '^20'
63-
fallbackNpm: '^9'
63+
fallbackNpm: '^10'
6464

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

@@ -82,7 +82,7 @@ jobs:
8282
summary:
8383
permissions:
8484
contents: none
85-
runs-on: ubuntu-latest
85+
runs-on: ubuntu-latest-low
8686
needs: [changes, lint]
8787

8888
if: always()

.github/workflows/lint-info-xml.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ concurrency:
1616

1717
jobs:
1818
xml-linters:
19-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-latest-low
2020

2121
name: info.xml lint
2222
steps:

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ jobs:
2525
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2626

2727
- name: Set up php8.2
28-
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
28+
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2
2929
with:
3030
php-version: 8.2
31+
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
3132
coverage: none
3233
ini-file: development
3334
env:

.github/workflows/lint-php.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ jobs:
2828
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2929

3030
- name: Set up php ${{ matrix.php-versions }}
31-
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
31+
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2
3232
with:
3333
php-version: ${{ matrix.php-versions }}
34+
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
3435
coverage: none
3536
ini-file: development
3637
env:
@@ -42,7 +43,7 @@ jobs:
4243
summary:
4344
permissions:
4445
contents: none
45-
runs-on: ubuntu-latest
46+
runs-on: ubuntu-latest-low
4647
needs: php-lint
4748

4849
if: always()

.github/workflows/lint-stylelint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
id: versions
3030
with:
3131
fallbackNode: '^20'
32-
fallbackNpm: '^9'
32+
fallbackNpm: '^10'
3333

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

.github/workflows/node.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ concurrency:
1616

1717
jobs:
1818
changes:
19-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-latest-low
2020

2121
outputs:
2222
src: ${{ steps.changes.outputs.src}}
2323

2424
steps:
25-
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
25+
- uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd # v3.0.0
2626
id: changes
2727
continue-on-error: true
2828
with:
@@ -54,10 +54,10 @@ jobs:
5454
id: versions
5555
with:
5656
fallbackNode: '^20'
57-
fallbackNpm: '^9'
57+
fallbackNpm: '^10'
5858

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

@@ -86,7 +86,7 @@ jobs:
8686
summary:
8787
permissions:
8888
contents: none
89-
runs-on: ubuntu-latest
89+
runs-on: ubuntu-latest-low
9090
needs: [changes, build]
9191

9292
if: always()

.github/workflows/phpunit-mariadb.yml

+21-8
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,27 @@ concurrency:
1515
cancel-in-progress: true
1616

1717
jobs:
18+
matrix:
19+
runs-on: ubuntu-latest-low
20+
outputs:
21+
php-max: ${{ steps.versions.outputs.php-max-list }}
22+
server-max: ${{ steps.versions.outputs.branches-max-list }}
23+
steps:
24+
- name: Checkout app
25+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
26+
27+
- name: Get version matrix
28+
id: versions
29+
uses: icewind1991/nextcloud-version-matrix@d594a6929da316b732c53355e52a1ead77ba36c7 # v1.2.0
30+
1831
changes:
19-
runs-on: ubuntu-latest
32+
runs-on: ubuntu-latest-low
2033

2134
outputs:
2235
src: ${{ steps.changes.outputs.src}}
2336

2437
steps:
25-
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
38+
- uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd # v3.0.0
2639
id: changes
2740
continue-on-error: true
2841
with:
@@ -42,14 +55,14 @@ jobs:
4255
phpunit-mariadb:
4356
runs-on: ubuntu-latest
4457

45-
needs: changes
58+
needs: [changes, matrix]
4659
if: needs.changes.outputs.src != 'false'
4760

4861
strategy:
4962
matrix:
50-
php-versions: ['8.2']
63+
php-versions: ${{ fromJson(needs.matrix.outputs.php-max) }}
64+
server-versions: ${{ fromJson(needs.matrix.outputs.server-max) }}
5165
mariadb-versions: ['10.6', '10.11']
52-
server-versions: ['master']
5366

5467
name: MariaDB ${{ matrix.mariadb-versions }} PHP ${{ matrix.php-versions }} Nextcloud ${{ matrix.server-versions }}
5568

@@ -81,7 +94,7 @@ jobs:
8194
path: apps/${{ env.APP_NAME }}
8295

8396
- name: Set up php ${{ matrix.php-versions }}
84-
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
97+
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2
8598
with:
8699
php-version: ${{ matrix.php-versions }}
87100
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
@@ -98,7 +111,7 @@ jobs:
98111
99112
- name: Check composer file existence
100113
id: check_composer
101-
uses: andstor/file-existence-action@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2
114+
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v2
102115
with:
103116
files: apps/${{ env.APP_NAME }}/composer.json
104117

@@ -162,7 +175,7 @@ jobs:
162175
summary:
163176
permissions:
164177
contents: none
165-
runs-on: ubuntu-latest
178+
runs-on: ubuntu-latest-low
166179
needs: [changes, phpunit-mariadb]
167180

168181
if: always()

.github/workflows/phpunit-mysql.yml

+21-10
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,28 @@ concurrency:
1515
cancel-in-progress: true
1616

1717
jobs:
18+
matrix:
19+
runs-on: ubuntu-latest-low
20+
outputs:
21+
matrix: ${{ steps.versions.outputs.sparse-matrix }}
22+
steps:
23+
- name: Checkout app
24+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
25+
26+
- name: Get version matrix
27+
id: versions
28+
uses: icewind1991/nextcloud-version-matrix@d594a6929da316b732c53355e52a1ead77ba36c7 # v1.2.0
29+
with:
30+
matrix: '{"mysql-versions": ["8.1"]}'
31+
1832
changes:
19-
runs-on: ubuntu-latest
33+
runs-on: ubuntu-latest-low
2034

2135
outputs:
2236
src: ${{ steps.changes.outputs.src}}
2337

2438
steps:
25-
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
39+
- uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd # v3.0.0
2640
id: changes
2741
continue-on-error: true
2842
with:
@@ -42,14 +56,11 @@ jobs:
4256
phpunit-mysql:
4357
runs-on: ubuntu-latest
4458

45-
needs: changes
59+
needs: [changes, matrix]
4660
if: needs.changes.outputs.src != 'false'
4761

4862
strategy:
49-
matrix:
50-
php-versions: ['8.0', '8.1', '8.2', '8.3']
51-
server-versions: ['master']
52-
mysql-versions: ['8.1']
63+
matrix: ${{ fromJson(needs.matrix.outputs.matrix) }}
5364

5465
name: MySQL ${{ matrix.mysql-versions }} PHP ${{ matrix.php-versions }} Nextcloud ${{ matrix.server-versions }}
5566

@@ -81,7 +92,7 @@ jobs:
8192
path: apps/${{ env.APP_NAME }}
8293

8394
- name: Set up php ${{ matrix.php-versions }}
84-
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
95+
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2
8596
with:
8697
php-version: ${{ matrix.php-versions }}
8798
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
@@ -98,7 +109,7 @@ jobs:
98109
99110
- name: Check composer file existence
100111
id: check_composer
101-
uses: andstor/file-existence-action@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2
112+
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v2
102113
with:
103114
files: apps/${{ env.APP_NAME }}/composer.json
104115

@@ -162,7 +173,7 @@ jobs:
162173
summary:
163174
permissions:
164175
contents: none
165-
runs-on: ubuntu-latest
176+
runs-on: ubuntu-latest-low
166177
needs: [changes, phpunit-mysql]
167178

168179
if: always()

0 commit comments

Comments
 (0)