Skip to content

Commit ab79ddf

Browse files
authored
Merge pull request #3381 from nextcloud/automated/update-workflows/default
chore: update workflows from templates
2 parents b6de97a + 10627ec commit ab79ddf

13 files changed

+58
-97
lines changed

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
types: [published]
1111

1212
env:
13-
PHP_VERSION: 8.1
13+
PHP_VERSION: 8.2
1414

1515
jobs:
1616
build_and_publish:
@@ -32,7 +32,7 @@ jobs:
3232
echo "APP_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
3333
3434
- name: Checkout
35-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
35+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3636
with:
3737
path: ${{ env.APP_NAME }}
3838

@@ -56,7 +56,7 @@ jobs:
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@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
59+
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # 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@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
69+
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
7070
with:
7171
php-version: ${{ env.PHP_VERSION }}
7272
coverage: none
@@ -128,7 +128,7 @@ jobs:
128128
unzip latest-$NCVERSION.zip
129129
130130
- name: Checkout server master fallback
131-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
131+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
132132
if: ${{ steps.server-checkout.outcome != 'success' }}
133133
with:
134134
submodules: true

.github/workflows/lint-eslint.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88

99
name: Lint eslint
1010

11-
on:
12-
pull_request:
11+
on: pull_request
1312

1413
permissions:
1514
contents: read
@@ -54,7 +53,7 @@ jobs:
5453

5554
steps:
5655
- name: Checkout
57-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
56+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
5857

5958
- name: Read package.json node and npm engines version
6059
uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.2
@@ -64,7 +63,7 @@ jobs:
6463
fallbackNpm: '^9'
6564

6665
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
67-
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
66+
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v3
6867
with:
6968
node-version: ${{ steps.versions.outputs.nodeVersion }}
7069

@@ -74,6 +73,7 @@ jobs:
7473
- name: Install dependencies
7574
env:
7675
CYPRESS_INSTALL_BINARY: 0
76+
PUPPETEER_SKIP_DOWNLOAD: true
7777
run: npm ci
7878

7979
- name: Lint

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

+3-9
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@
55

66
name: Lint info.xml
77

8-
on:
9-
pull_request:
10-
push:
11-
branches:
12-
- main
13-
- master
14-
- stable*
8+
on: pull_request
159

1610
permissions:
1711
contents: read
@@ -27,13 +21,13 @@ jobs:
2721
name: info.xml lint
2822
steps:
2923
- name: Checkout
30-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
24+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3125

3226
- name: Download schema
3327
run: wget https://raw.githubusercontent.com/nextcloud/appstore/master/nextcloudappstore/api/v1/release/info.xsd
3428

3529
- name: Lint info.xml
36-
uses: ChristophWurst/xmllint-action@39155a91429af431d65fafc21fa52ba5c4f5cb71 # v1.1
30+
uses: ChristophWurst/xmllint-action@36f2a302f84f8c83fceea0b9c59e1eb4a616d3c1 # v1.2
3731
with:
3832
xml-file: ./appinfo/info.xml
3933
xml-schema-file: ./info.xsd

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222

2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
25+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2626

27-
- name: Set up php
28-
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
27+
- name: Set up php8.2
28+
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
2929
with:
30-
php-version: 8.1
30+
php-version: 8.2
3131
coverage: none
3232
ini-file: development
3333
env:

.github/workflows/lint-php.yml

+4-10
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@
55

66
name: Lint php
77

8-
on:
9-
pull_request:
10-
push:
11-
branches:
12-
- main
13-
- master
14-
- stable*
8+
on: pull_request
159

1610
permissions:
1711
contents: read
@@ -25,16 +19,16 @@ jobs:
2519
runs-on: ubuntu-latest
2620
strategy:
2721
matrix:
28-
php-versions: [ "8.0", "8.1", "8.2", "8.3" ]
22+
php-versions: [ '8.0', '8.1', '8.2', '8.3' ]
2923

3024
name: php-lint
3125

3226
steps:
3327
- name: Checkout
34-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
28+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3529

3630
- name: Set up php ${{ matrix.php-versions }}
37-
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
31+
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
3832
with:
3933
php-version: ${{ matrix.php-versions }}
4034
coverage: none

.github/workflows/lint-stylelint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
25+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2626

2727
- name: Read package.json node and npm engines version
2828
uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.2
@@ -32,7 +32,7 @@ jobs:
3232
fallbackNpm: '^9'
3333

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

.github/workflows/phpunit-mysql.yml

+9-12
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,9 @@
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 mysql
6+
name: PHPUnit MySQL
77

8-
on:
9-
pull_request:
10-
push:
11-
branches:
12-
- main
13-
- master
14-
- stable*
8+
on: pull_request
159

1610
permissions:
1711
contents: read
@@ -55,10 +49,13 @@ jobs:
5549
matrix:
5650
php-versions: ['8.0', '8.1', '8.2', '8.3']
5751
server-versions: ['master']
52+
mysql-versions: ['8.1']
53+
54+
name: MySQL ${{ matrix.mysql-versions }} PHP ${{ matrix.php-versions }} Nextcloud ${{ matrix.server-versions }}
5855

5956
services:
6057
mysql:
61-
image: ghcr.io/nextcloud/continuous-integration-mariadb-10.6:latest
58+
image: ghcr.io/nextcloud/continuous-integration-mysql-${{ matrix.mysql-versions }}:latest
6259
ports:
6360
- 4444:3306/tcp
6461
env:
@@ -72,19 +69,19 @@ jobs:
7269
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
7370
7471
- name: Checkout server
75-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
72+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
7673
with:
7774
submodules: true
7875
repository: nextcloud/server
7976
ref: ${{ matrix.server-versions }}
8077

8178
- name: Checkout app
82-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
79+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
8380
with:
8481
path: apps/${{ env.APP_NAME }}
8582

8683
- name: Set up php ${{ matrix.php-versions }}
87-
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
84+
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
8885
with:
8986
php-version: ${{ matrix.php-versions }}
9087
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

.github/workflows/phpunit-oci.yml

+5-11
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@
55

66
name: PHPUnit OCI
77

8-
on:
9-
pull_request:
10-
push:
11-
branches:
12-
- main
13-
- master
14-
- stable*
8+
on: pull_request
159

1610
permissions:
1711
contents: read
@@ -53,7 +47,7 @@ jobs:
5347

5448
strategy:
5549
matrix:
56-
php-versions: ['8.0']
50+
php-versions: ['8.2']
5751
server-versions: ['master']
5852

5953
services:
@@ -84,19 +78,19 @@ jobs:
8478
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
8579
8680
- name: Checkout server
87-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
81+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
8882
with:
8983
submodules: true
9084
repository: nextcloud/server
9185
ref: ${{ matrix.server-versions }}
9286

9387
- name: Checkout app
94-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
88+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
9589
with:
9690
path: apps/${{ env.APP_NAME }}
9791

9892
- name: Set up php ${{ matrix.php-versions }}
99-
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
93+
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
10094
with:
10195
php-version: ${{ matrix.php-versions }}
10296
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

.github/workflows/phpunit-pgsql.yml

+5-11
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@
55

66
name: PHPUnit pgsql
77

8-
on:
9-
pull_request:
10-
push:
11-
branches:
12-
- main
13-
- master
14-
- stable*
8+
on: pull_request
159

1610
permissions:
1711
contents: read
@@ -53,7 +47,7 @@ jobs:
5347

5448
strategy:
5549
matrix:
56-
php-versions: ['8.0']
50+
php-versions: ['8.2']
5751
server-versions: ['master']
5852

5953
services:
@@ -74,19 +68,19 @@ jobs:
7468
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
7569
7670
- name: Checkout server
77-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
71+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
7872
with:
7973
submodules: true
8074
repository: nextcloud/server
8175
ref: ${{ matrix.server-versions }}
8276

8377
- name: Checkout app
84-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
78+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
8579
with:
8680
path: apps/${{ env.APP_NAME }}
8781

8882
- name: Set up php ${{ matrix.php-versions }}
89-
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
83+
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
9084
with:
9185
php-version: ${{ matrix.php-versions }}
9286
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

.github/workflows/phpunit-sqlite.yml

+5-11
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@
55

66
name: PHPUnit sqlite
77

8-
on:
9-
pull_request:
10-
push:
11-
branches:
12-
- main
13-
- master
14-
- stable*
8+
on: pull_request
159

1610
permissions:
1711
contents: read
@@ -53,7 +47,7 @@ jobs:
5347

5448
strategy:
5549
matrix:
56-
php-versions: ['8.0']
50+
php-versions: ['8.2']
5751
server-versions: ['master']
5852

5953
steps:
@@ -63,19 +57,19 @@ jobs:
6357
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
6458
6559
- name: Checkout server
66-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
60+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
6761
with:
6862
submodules: true
6963
repository: nextcloud/server
7064
ref: ${{ matrix.server-versions }}
7165

7266
- name: Checkout app
73-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
67+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
7468
with:
7569
path: apps/${{ env.APP_NAME }}
7670

7771
- name: Set up php ${{ matrix.php-versions }}
78-
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
72+
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
7973
with:
8074
php-version: ${{ matrix.php-versions }}
8175
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

.github/workflows/pr-feedback.yml

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

0 commit comments

Comments
 (0)