Skip to content

Commit bdb5287

Browse files
author
AVINASH GUSAIN
committed
Upgrade to 4.7.13
1 parent 7295960 commit bdb5287

File tree

413 files changed

+24038
-40210
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

413 files changed

+24038
-40210
lines changed

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

Lines changed: 22 additions & 17 deletions
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.1
14-
1512
jobs:
1613
build_and_publish:
1714
runs-on: ubuntu-latest
@@ -21,7 +18,7 @@ jobs:
2118

2219
steps:
2320
- name: Check actor permission
24-
uses: skjnldsv/check-actor-permission@e591dbfe838300c007028e1219ca82cc26e8d7c5 # v2.1
21+
uses: skjnldsv/check-actor-permission@69e92a3c4711150929bca9fcf34448c5bf5526e7 # v3.0
2522
with:
2623
require: write
2724

@@ -32,7 +29,7 @@ jobs:
3229
echo "APP_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
3330
3431
- name: Checkout
35-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
32+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3633
with:
3734
path: ${{ env.APP_NAME }}
3835

@@ -44,19 +41,19 @@ jobs:
4441
expression: "//info//dependencies//nextcloud/@min-version"
4542

4643
- name: Read package.json node and npm engines version
47-
uses: skjnldsv/read-package-engines-version-actions@0ce2ed60f6df073a62a77c0a4958dd0fc68e32e7 # v2.1
44+
uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.2
4845
id: versions
4946
# Continue if no package.json
5047
continue-on-error: true
5148
with:
5249
path: ${{ env.APP_NAME }}
53-
fallbackNode: "^16"
54-
fallbackNpm: "^7"
50+
fallbackNode: '^20'
51+
fallbackNpm: '^10'
5552

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@1a4442cacd436585916779262731d5b162bc6ec7 # v3
56+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
6057
with:
6158
node-version: ${{ steps.versions.outputs.nodeVersion }}
6259

@@ -65,17 +62,23 @@ 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@7fdd3ece872ec7ec4c098ae5ab7637d5e0a96067 # v2
65+
- name: Get php version
66+
id: php-versions
67+
uses: icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.3.1
7068
with:
71-
php-version: ${{ env.PHP_VERSION }}
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
73+
with:
74+
php-version: ${{ steps.php-versions.outputs.php-min }}
7275
coverage: none
7376
env:
7477
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7578

7679
- name: Check composer.json
7780
id: check_composer
78-
uses: andstor/file-existence-action@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2
81+
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v2
7982
with:
8083
files: "${{ env.APP_NAME }}/composer.json"
8184

@@ -88,14 +91,16 @@ jobs:
8891
- name: Build ${{ env.APP_NAME }}
8992
# Skip if no package.json
9093
if: ${{ steps.versions.outputs.nodeVersion }}
94+
env:
95+
CYPRESS_INSTALL_BINARY: 0
9196
run: |
9297
cd ${{ env.APP_NAME }}
9398
npm ci
9499
npm run build
95100
96101
- name: Check Krankerl config
97102
id: krankerl
98-
uses: andstor/file-existence-action@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2
103+
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v2
99104
with:
100105
files: ${{ env.APP_NAME }}/krankerl.toml
101106

@@ -126,7 +131,7 @@ jobs:
126131
unzip latest-$NCVERSION.zip
127132
128133
- name: Checkout server master fallback
129-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
134+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
130135
if: ${{ steps.server-checkout.outcome != 'success' }}
131136
with:
132137
submodules: true
@@ -149,7 +154,7 @@ jobs:
149154
tar -zcvf ${{ env.APP_NAME }}.tar.gz ${{ env.APP_NAME }}
150155
151156
- name: Attach tarball to github release
152-
uses: svenstaro/upload-release-action@2b9d2847a97b04d02ad5c3df2d3a27baa97ce689 # v2
157+
uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # v2
153158
id: attach_to_release
154159
with:
155160
repo_token: ${{ secrets.GITHUB_TOKEN }}
@@ -164,4 +169,4 @@ jobs:
164169
app_name: ${{ env.APP_NAME }}
165170
appstore_token: ${{ secrets.APPSTORE_TOKEN }}
166171
download_url: ${{ steps.attach_to_release.outputs.browser_download_url }}
167-
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}
172+
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}

.github/workflows/fixup.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
pull-requests: write
2525
name: Block fixup and squash commits
2626

27-
runs-on: ubuntu-latest
27+
runs-on: ubuntu-latest-low
2828

2929
steps:
3030
- name: Run check
3131
uses: skjnldsv/block-fixup-merge-action@42d26e1b536ce61e5cf467d65fb76caf4aa85acf # v1
3232
with:
33-
repo-token: ${{ secrets.GITHUB_TOKEN }}
33+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/lint-eslint.yml

Lines changed: 53 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,7 @@
88

99
name: Lint eslint
1010

11-
on:
12-
pull_request:
13-
paths:
14-
- '.github/workflows/**'
15-
- 'src/**'
16-
- 'appinfo/info.xml'
17-
- 'package.json'
18-
- 'package-lock.json'
19-
- 'tsconfig.json'
20-
- '.eslintrc.*'
21-
- '.eslintignore'
22-
- '**.js'
23-
- '**.ts'
24-
- '**.vue'
11+
on: pull_request
2512

2613
permissions:
2714
contents: read
@@ -31,32 +18,78 @@ concurrency:
3118
cancel-in-progress: true
3219

3320
jobs:
21+
changes:
22+
runs-on: ubuntu-latest-low
23+
24+
outputs:
25+
src: ${{ steps.changes.outputs.src}}
26+
27+
steps:
28+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
29+
id: changes
30+
continue-on-error: true
31+
with:
32+
filters: |
33+
src:
34+
- '.github/workflows/**'
35+
- 'src/**'
36+
- 'appinfo/info.xml'
37+
- 'package.json'
38+
- 'package-lock.json'
39+
- 'tsconfig.json'
40+
- '.eslintrc.*'
41+
- '.eslintignore'
42+
- '**.js'
43+
- '**.ts'
44+
- '**.vue'
45+
3446
lint:
3547
runs-on: ubuntu-latest
3648

37-
name: eslint
49+
needs: changes
50+
if: needs.changes.outputs.src != 'false'
51+
52+
name: NPM lint
3853

3954
steps:
4055
- name: Checkout
41-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
56+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4257

4358
- name: Read package.json node and npm engines version
44-
uses: skjnldsv/read-package-engines-version-actions@0ce2ed60f6df073a62a77c0a4958dd0fc68e32e7 # v2.1
59+
uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.2
4560
id: versions
4661
with:
47-
fallbackNode: '^16'
48-
fallbackNpm: '^7'
62+
fallbackNode: '^20'
63+
fallbackNpm: '^10'
4964

5065
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
51-
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
66+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
5267
with:
5368
node-version: ${{ steps.versions.outputs.nodeVersion }}
5469

5570
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
5671
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
5772

5873
- name: Install dependencies
74+
env:
75+
CYPRESS_INSTALL_BINARY: 0
76+
PUPPETEER_SKIP_DOWNLOAD: true
5977
run: npm ci
6078

6179
- name: Lint
6280
run: npm run lint
81+
82+
summary:
83+
permissions:
84+
contents: none
85+
runs-on: ubuntu-latest-low
86+
needs: [changes, lint]
87+
88+
if: always()
89+
90+
# This is the summary, we just avoid to rename it so that branch protection rules still match
91+
name: eslint
92+
93+
steps:
94+
- name: Summary status
95+
run: if ${{ needs.changes.outputs.src != 'false' && needs.lint.result != 'success' }}; then exit 1; fi

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

Lines changed: 5 additions & 11 deletions
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
@@ -22,18 +16,18 @@ concurrency:
2216

2317
jobs:
2418
xml-linters:
25-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-latest-low
2620

2721
name: info.xml lint
2822
steps:
2923
- name: Checkout
30-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
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
39-
xml-schema-file: ./info.xsd
33+
xml-schema-file: ./info.xsd

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,17 @@ jobs:
2222

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

27-
- name: Set up php
28-
uses: shivammathur/setup-php@7fdd3ece872ec7ec4c098ae5ab7637d5e0a96067 # 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.1
34+
php-version: ${{ steps.versions.outputs.php-available }}
35+
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
3136
coverage: none
3237
ini-file: development
3338
env:
@@ -37,4 +42,4 @@ jobs:
3742
run: composer i
3843

3944
- name: Lint
40-
run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 )
45+
run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 )

.github/workflows/lint-php.yml

Lines changed: 19 additions & 12 deletions
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
@@ -21,22 +15,35 @@ concurrency:
2115
cancel-in-progress: true
2216

2317
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+
2429
php-lint:
2530
runs-on: ubuntu-latest
31+
needs: matrix
2632
strategy:
2733
matrix:
28-
php-versions: [ "7.4", "8.0", "8.1", "8.2", "8.3" ]
34+
php-versions: ${{fromJson(needs.matrix.outputs.php-versions)}}
2935

3036
name: php-lint
3137

3238
steps:
3339
- name: Checkout
34-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
40+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3541

3642
- name: Set up php ${{ matrix.php-versions }}
37-
uses: shivammathur/setup-php@7fdd3ece872ec7ec4c098ae5ab7637d5e0a96067 # v2
43+
uses: shivammathur/setup-php@a4e22b60bbb9c1021113f2860347b0759f66fe5d # v2
3844
with:
3945
php-version: ${{ matrix.php-versions }}
46+
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
4047
coverage: none
4148
ini-file: development
4249
env:
@@ -48,7 +55,7 @@ jobs:
4855
summary:
4956
permissions:
5057
contents: none
51-
runs-on: ubuntu-latest
58+
runs-on: ubuntu-latest-low
5259
needs: php-lint
5360

5461
if: always()
@@ -57,4 +64,4 @@ jobs:
5764

5865
steps:
5966
- name: Summary status
60-
run: if ${{ needs.php-lint.result != 'success' && needs.php-lint.result != 'skipped' }}; then exit 1; fi
67+
run: if ${{ needs.php-lint.result != 'success' && needs.php-lint.result != 'skipped' }}; then exit 1; fi

.github/workflows/npm-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: npm run test:coverage
3131

3232
- name: Upload coverage to Codecov
33-
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3
33+
uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3
3434
with:
3535
token: ${{ secrets.CODECOV_TOKEN }}
3636
file: ./coverage/coverage-final.json
@@ -48,4 +48,4 @@ jobs:
4848

4949
steps:
5050
- name: Jest status
51-
run: if ${{ needs.jest.result != 'success' && needs.jest.result != 'skipped' }}; then exit 1; fi
51+
run: if ${{ needs.jest.result != 'success' && needs.jest.result != 'skipped' }}; then exit 1; fi

0 commit comments

Comments
 (0)