Skip to content

Commit 4a4902a

Browse files
committed
chore: update workflows from templates
Signed-off-by: skjnldsv <[email protected]>
1 parent 79f5b2e commit 4a4902a

File tree

4 files changed

+52
-72
lines changed

4 files changed

+52
-72
lines changed

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

Lines changed: 21 additions & 16 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@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # 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@c5fc0d8281aba02c7fda07d3a70cc5371548067d # 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 }}

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

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,7 @@
55

66
name: Lint php-cs
77

8-
on:
9-
push:
10-
branches: [ main, test ]
11-
paths:
12-
- 'lib/**'
13-
- 'templates/**'
14-
- 'tests/**'
15-
- 'vendor/**'
16-
- 'vendor-bin/**'
17-
- composer.lock
18-
- composer.json
19-
pull_request:
20-
paths:
21-
- 'lib/**'
22-
- 'templates/**'
23-
- 'tests/**'
24-
- 'vendor/**'
25-
- 'vendor-bin/**'
26-
- composer.lock
27-
- composer.json
8+
on: pull_request
289

2910
permissions:
3011
contents: read
@@ -41,12 +22,17 @@ jobs:
4122

4223
steps:
4324
- name: Checkout
44-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
25+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4526

46-
- name: Set up php
47-
uses: shivammathur/setup-php@c5fc0d8281aba02c7fda07d3a70cc5371548067d # 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
4833
with:
49-
php-version: 8.2
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
5036
coverage: none
5137
ini-file: development
5238
env:

.github/workflows/pr-feedback.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
# This workflow is provided via the organization template repository
2+
#
3+
# https://github.com/nextcloud/.github
4+
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
5+
16
name: 'Ask for feedback on PRs'
27
on:
38
schedule:
49
- cron: '30 1 * * *'
510

611
jobs:
712
pr-feedback:
8-
runs-on: ubuntu-22.04
13+
runs-on: ubuntu-latest
914
steps:
1015
- name: The get-github-handles-from-website action
1116
uses: marcelklehr/get-github-handles-from-website-action@a739600f6b91da4957f51db0792697afbb2f143c # v1.0.0
@@ -16,7 +21,7 @@ jobs:
1621
with:
1722
feedback-message: |
1823
Hello there,
19-
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.
24+
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.
2025
2126
We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.
2227
@@ -25,5 +30,5 @@ jobs:
2530
Thank you for contributing to Nextcloud and we hope to hear from you soon!
2631
days-before-feedback: 14
2732
start-date: "2023-07-10"
28-
exempt-authors: "${{ steps.scrape.outputs.users }},nextcloud-command"
33+
exempt-authors: "${{ steps.scrape.outputs.users }},nextcloud-command,nextcloud-android-bot,skjnldsv,datenangebot"
2934
exempt-bots: true

.github/workflows/psalm.yml

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +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: Psalm static analysis
7-
8-
on:
9-
pull_request:
10-
paths:
11-
- .github/workflows/psalm.yml
12-
- appinfo/**
13-
- composer.*
14-
- lib/**
15-
- templates/**
16-
- tests/**
17-
push:
18-
branches:
19-
- main
20-
- stable*
21-
- test
22-
paths:
23-
- .github/workflows/psalm.yml
24-
- appinfo/**
25-
- composer.*
26-
- lib/**
27-
- templates/**
28-
- tests/**
6+
name: Static analysis
7+
8+
on: pull_request
299

3010
concurrency:
3111
group: psalm-${{ github.head_ref || github.run_id }}
@@ -35,18 +15,22 @@ jobs:
3515
static-analysis:
3616
runs-on: ubuntu-latest
3717

38-
name: Psalm check
18+
name: static-psalm-analysis
3919
steps:
4020
- name: Checkout
41-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
21+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
22+
23+
- name: Get php version
24+
id: versions
25+
uses: icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.3.1
4226

43-
- name: Set up php
44-
uses: shivammathur/setup-php@c5fc0d8281aba02c7fda07d3a70cc5371548067d # v2
27+
- name: Set up php${{ steps.versions.outputs.php-available }}
28+
uses: shivammathur/setup-php@a4e22b60bbb9c1021113f2860347b0759f66fe5d # v2
4529
with:
46-
php-version: 8.2
30+
php-version: ${{ steps.versions.outputs.php-available }}
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
4732
coverage: none
4833
ini-file: development
49-
extensions: mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite, gd, zip
5034
env:
5135
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5236

0 commit comments

Comments
 (0)