Skip to content

Commit e1854be

Browse files
authored
Merge pull request #205 from nextcloud/automated/update-workflows/default
chore: update workflows from templates
2 parents 845e11d + 7bab42b commit e1854be

File tree

10 files changed

+74
-59
lines changed

10 files changed

+74
-59
lines changed

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

Lines changed: 5 additions & 5 deletions
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

Lines changed: 4 additions & 4 deletions
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-php-cs.yml

Lines changed: 4 additions & 4 deletions
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

Lines changed: 4 additions & 10 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
@@ -25,16 +19,16 @@ jobs:
2519
runs-on: ubuntu-latest
2620
strategy:
2721
matrix:
28-
php-versions: [ "8.0", "8.1", "8.2" ]
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/node-test.yml

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,40 @@ concurrency:
1616
cancel-in-progress: true
1717

1818
jobs:
19+
changes:
20+
runs-on: ubuntu-latest
21+
22+
outputs:
23+
src: ${{ steps.changes.outputs.src}}
24+
25+
steps:
26+
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
27+
id: changes
28+
continue-on-error: true
29+
with:
30+
filters: |
31+
src:
32+
- '.github/workflows/**'
33+
- '__tests__/**'
34+
- '__mocks__/**'
35+
- 'src/**'
36+
- 'appinfo/info.xml'
37+
- 'package.json'
38+
- 'package-lock.json'
39+
- 'tsconfig.json'
40+
- '**.js'
41+
- '**.ts'
42+
- '**.vue'
43+
1944
test:
2045
runs-on: ubuntu-latest
2146

47+
needs: changes
48+
if: needs.changes.outputs.src != 'false'
49+
2250
steps:
2351
- name: Checkout
24-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
52+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2553

2654
- name: Read package.json node and npm engines version
2755
uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.2
@@ -31,7 +59,7 @@ jobs:
3159
fallbackNpm: '^9'
3260

3361
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
34-
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
62+
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
3563
with:
3664
node-version: ${{ steps.versions.outputs.nodeVersion }}
3765

@@ -50,18 +78,22 @@ jobs:
5078

5179
- name: Test and process coverage
5280
run: npm run test:coverage --if-present
53-
81+
5482
- name: Collect coverage
5583
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
5684
with:
5785
files: ./coverage/lcov.info
5886

5987
summary:
88+
permissions:
89+
contents: none
6090
runs-on: ubuntu-latest
61-
needs: test
91+
needs: [changes, test]
92+
6293
if: always()
6394

6495
name: test-summary
96+
6597
steps:
6698
- name: Summary status
67-
run: if ${{ needs.test.result != 'success' && needs.test.result != 'skipped' }}; then exit 1; fi
99+
run: if ${{ needs.changes.outputs.src != 'false' && needs.test.result != 'success' }}; then exit 1; fi

.github/workflows/node.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@
55

66
name: Node
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
name: NPM build
5448
steps:
5549
- name: Checkout
56-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
50+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
5751

5852
- name: Read package.json node and npm engines version
5953
uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.2
@@ -63,7 +57,7 @@ jobs:
6357
fallbackNpm: '^9'
6458

6559
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
66-
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
60+
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v3
6761
with:
6862
node-version: ${{ steps.versions.outputs.nodeVersion }}
6963

@@ -73,6 +67,7 @@ jobs:
7367
- name: Install dependencies & build
7468
env:
7569
CYPRESS_INSTALL_BINARY: 0
70+
PUPPETEER_SKIP_DOWNLOAD: true
7671
run: |
7772
npm ci
7873
npm run build --if-present

.github/workflows/npm-audit-fix.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
branches: ["main", "master", "stable27", "stable26", "stable25"]
22-
21+
branches: ['main', 'master', 'stable28', 'stable27', 'stable26']
22+
2323
name: npm-audit-fix-${{ matrix.branches }}
2424

2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
27+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2828
with:
2929
ref: ${{ matrix.branches }}
3030

@@ -36,7 +36,7 @@ jobs:
3636
fallbackNpm: '^9'
3737

3838
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
39-
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
39+
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v3
4040
with:
4141
node-version: ${{ steps.versions.outputs.nodeVersion }}
4242

.github/workflows/pr-feedback.yml

Lines changed: 1 addition & 1 deletion
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

.github/workflows/psalm.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@
55

66
name: Static analysis
77

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

1610
concurrency:
1711
group: psalm-${{ github.head_ref || github.run_id }}
@@ -21,15 +15,15 @@ jobs:
2115
static-analysis:
2216
runs-on: ubuntu-latest
2317

24-
name: Nextcloud
18+
name: static-psalm-analysis
2519
steps:
2620
- name: Checkout
27-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
21+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2822

29-
- name: Set up php
30-
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
23+
- name: Set up php8.2
24+
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
3125
with:
32-
php-version: 8.1
26+
php-version: 8.2
3327
coverage: none
3428
ini-file: development
3529
env:

.github/workflows/update-nextcloud-ocp.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
branches: ["main"]
20+
branches: ['main', 'master', 'stable28', 'stable27', 'stable26']
2121

2222
name: update-nextcloud-ocp-${{ matrix.branches }}
2323

2424
steps:
2525
- id: checkout
26-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
26+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2727
with:
2828
ref: ${{ matrix.branches }}
2929
submodules: true
3030
continue-on-error: true
3131

32-
- name: Set up php8.1
32+
- name: Set up php8.2
3333
if: steps.checkout.outcome == 'success'
34-
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
34+
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
3535
with:
36-
php-version: 8.1
36+
php-version: 8.2
3737
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
3838
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
3939
coverage: none

0 commit comments

Comments
 (0)