Skip to content

Commit 8ae3e06

Browse files
committed
chore: update workflows from templates
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
1 parent 5ee3950 commit 8ae3e06

File tree

4 files changed

+35
-66
lines changed

4 files changed

+35
-66
lines changed

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

Lines changed: 14 additions & 12 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:
@@ -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

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

@@ -44,19 +44,19 @@ jobs:
4444
expression: "//info//dependencies//nextcloud/@min-version"
4545

4646
- name: Read package.json node and npm engines version
47-
uses: skjnldsv/read-package-engines-version-actions@0ce2ed60f6df073a62a77c0a4958dd0fc68e32e7 # v2.1
47+
uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.2
4848
id: versions
4949
# Continue if no package.json
5050
continue-on-error: true
5151
with:
5252
path: ${{ env.APP_NAME }}
53-
fallbackNode: "^16"
54-
fallbackNpm: "^7"
53+
fallbackNode: '^20'
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@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # 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@c5fc0d8281aba02c7fda07d3a70cc5371548067d # 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

@@ -88,14 +88,16 @@ jobs:
8888
- name: Build ${{ env.APP_NAME }}
8989
# Skip if no package.json
9090
if: ${{ steps.versions.outputs.nodeVersion }}
91+
env:
92+
CYPRESS_INSTALL_BINARY: 0
9193
run: |
9294
cd ${{ env.APP_NAME }}
9395
npm ci
9496
npm run build
9597
9698
- name: Check Krankerl config
9799
id: krankerl
98-
uses: andstor/file-existence-action@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2
100+
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v2
99101
with:
100102
files: ${{ env.APP_NAME }}/krankerl.toml
101103

@@ -126,7 +128,7 @@ jobs:
126128
unzip latest-$NCVERSION.zip
127129
128130
- name: Checkout server master fallback
129-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
131+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
130132
if: ${{ steps.server-checkout.outcome != 'success' }}
131133
with:
132134
submodules: true
@@ -149,7 +151,7 @@ jobs:
149151
tar -zcvf ${{ env.APP_NAME }}.tar.gz ${{ env.APP_NAME }}
150152
151153
- name: Attach tarball to github release
152-
uses: svenstaro/upload-release-action@2b9d2847a97b04d02ad5c3df2d3a27baa97ce689 # v2
154+
uses: svenstaro/upload-release-action@1beeb572c19a9242f4361f4cee78f8e0d9aec5df # v2
153155
id: attach_to_release
154156
with:
155157
repo_token: ${{ secrets.GITHUB_TOKEN }}

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

Lines changed: 5 additions & 23 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,13 @@ 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: Set up php8.2
28+
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2
4829
with:
4930
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
5032
coverage: none
5133
ini-file: development
5234
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: 8 additions & 28 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,18 @@ 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
4222

43-
- name: Set up php
44-
uses: shivammathur/setup-php@c5fc0d8281aba02c7fda07d3a70cc5371548067d # v2
23+
- name: Set up php8.2
24+
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2
4525
with:
4626
php-version: 8.2
27+
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
4728
coverage: none
4829
ini-file: development
49-
extensions: mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite, gd, zip
5030
env:
5131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5232

0 commit comments

Comments
 (0)