Skip to content

Commit 556128a

Browse files
ci(actions): Update workflow templates from organization template repository
Signed-off-by: GitHub <noreply@github.com>
1 parent 2994adc commit 556128a

8 files changed

Lines changed: 34 additions & 39 deletions

.github/actions-lock.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
22
# SPDX-License-Identifier: MIT
3-
3db54dfe0671bf6c30556a5bb6487c22 block-merge-freeze.yml
3+
25fc4c7e69e778e20bdc9eb0cc96367e block-merge-freeze.yml
44
30c9fe81a0a80bcf36cc7d441fcb8f9d block-unconventional-commits.yml
5-
0c3e9b2e56e1b2590a005a80b55c3218 command-compile.yml
6-
4cb6e4935d3f2bc1e3c99c77739118ca cypress.yml
7-
cbffe424c47647a2e375f96f25b67af9 dependabot-approve-merge.yml
5+
4fcd0bffd33680b73724dfd62fae37dd command-compile.yml
6+
531c3565eb09e2d4ada3efbe3e845b8c cypress.yml
7+
7dd8d21d9dd013196cd4bdbf7c24db6f dependabot-approve-merge.yml
88
2581a67c5bcdcd570427e6d51db767d7 fixup.yml
99
54f293d9abe11ac0035a7bbb96a4e453 lint-eslint.yml
1010
ccd8a55c60e35b84becb0f7005ce1286 lint-php-cs.yml
1111
5dcc3187a9460cb62a455235cbdb3562 lint-php.yml
1212
cf229fbf443d2f7a303f22eb92745811 lint-stylelint.yml
1313
c965845a0def7b39d872e47e93dd1139 node.yml
14-
2d1e4038ee445a9fc1dcdb10c8036d34 npm-audit-fix.yml
14+
0b18653741a7e7d377c239a55c5bb062 npm-audit-fix.yml
1515
3c4a096b3b7dbaef0f8e5190ffe13518 pr-feedback.yml
16-
2070d9569f327e758b9ce2b924c28fef psalm.yml
16+
a6d8aa0050107ce4d8b6d166d25ca8aa psalm.yml
1717
7db5b820f3750eebe988005a0bb2febd reuse.yml
18-
48c2c657b87747c9faeb589bcce08923 update-stable-titles.yml
18+
22604c31b526de270a080eb19967a638 update-stable-titles.yml

.github/workflows/block-merge-freeze.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
steps:
3131
- name: Register server reference to fallback to master branch
32-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
32+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
3333
with:
3434
github-token: ${{secrets.GITHUB_TOKEN}}
3535
script: |

.github/workflows/command-compile.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
steps:
3232
- name: Get repository from pull request comment
33-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
33+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
3434
id: get-repository
3535
with:
3636
github-token: ${{secrets.GITHUB_TOKEN}}
@@ -59,7 +59,7 @@ jobs:
5959
- name: Add reaction on start
6060
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
6161
with:
62-
token: ${{ secrets.COMMAND_BOT_PAT }} # zizmor: ignore[secrets-outside-env]
62+
token: ${{ secrets.COMMAND_BOT_PAT }}
6363
repository: ${{ github.event.repository.full_name }}
6464
comment-id: ${{ github.event.comment.id }}
6565
reactions: '+1'
@@ -86,7 +86,7 @@ jobs:
8686
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
8787
if: failure()
8888
with:
89-
token: ${{ secrets.COMMAND_BOT_PAT }} # zizmor: ignore[secrets-outside-env]
89+
token: ${{ secrets.COMMAND_BOT_PAT }}
9090
repository: ${{ github.event.repository.full_name }}
9191
comment-id: ${{ github.event.comment.id }}
9292
reactions: '-1'
@@ -97,7 +97,7 @@ jobs:
9797

9898
steps:
9999
- name: Restore cached git repository
100-
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
100+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
101101
with:
102102
path: .git
103103
key: git-repo
@@ -107,7 +107,7 @@ jobs:
107107
with:
108108
# Needed to allow force push later
109109
persist-credentials: true
110-
token: ${{ secrets.COMMAND_BOT_PAT }} # zizmor: ignore[secrets-outside-env]
110+
token: ${{ secrets.COMMAND_BOT_PAT }}
111111
fetch-depth: 0
112112
ref: ${{ needs.init.outputs.head_ref }}
113113

@@ -216,7 +216,7 @@ jobs:
216216
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
217217
if: failure()
218218
with:
219-
token: ${{ secrets.COMMAND_BOT_PAT }} # zizmor: ignore[secrets-outside-env]
219+
token: ${{ secrets.COMMAND_BOT_PAT }}
220220
repository: ${{ github.event.repository.full_name }}
221221
comment-id: ${{ github.event.comment.id }}
222222
reactions: '-1'

.github/workflows/cypress.yml

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
TESTING=true npm run build --if-present
8282
8383
- name: Save context
84-
uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
84+
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
8585
with:
8686
key: cypress-context-${{ github.run_id }}
8787
path: ./
@@ -93,17 +93,15 @@ jobs:
9393
strategy:
9494
fail-fast: false
9595
matrix:
96-
# Please increase the number or runners as your tests suite grows (0 based index for e2e tests)
97-
containers: [0, 1, 2, 3, 4, 5, 6, 7]
98-
# Hack as strategy.job-total includes the component and GitHub does not allow math expressions
99-
# Always align this number with the total of e2e runners (max. index + 1)
100-
total-containers: [8]
96+
# Run multiple copies of the current job in parallel
97+
# Please increase the number or runners as your tests suite grows
98+
containers: ['component', '1', '2', '3']
10199

102100
name: runner ${{ matrix.containers }}
103101

104102
steps:
105103
- name: Restore context
106-
uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
104+
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
107105
with:
108106
fail-on-cache-miss: true
109107
key: cypress-context-${{ github.run_id }}
@@ -117,18 +115,17 @@ jobs:
117115
- name: Set up npm ${{ needs.init.outputs.npmVersion }}
118116
run: npm i -g 'npm@${{ needs.init.outputs.npmVersion }}'
119117

120-
- name: Install cypress
121-
run: ./node_modules/cypress/bin/cypress install
122-
123118
- name: Run ${{ matrix.containers == 'component' && 'component' || 'E2E' }} cypress tests
124119
uses: cypress-io/github-action@783cb3f07983868532cabaedaa1e6c00ff4786a8 # v7.1.9
125120
with:
126-
# We already installed the dependencies in the init job
127-
install: false
121+
record: ${{ secrets.CYPRESS_RECORD_KEY && true }}
122+
parallel: ${{ secrets.CYPRESS_RECORD_KEY && true }}
128123
# cypress run type
129124
component: ${{ matrix.containers == 'component' }}
130-
# Do not add Cypress record key config as this conflicts with cypress-split
131-
# Cypress again tries to force users to buy their dashboard...
125+
group: ${{ secrets.CYPRESS_RECORD_KEY && env.CYPRESS_GROUP }}
126+
# cypress env
127+
ci-build-id: ${{ secrets.CYPRESS_RECORD_KEY && env.CYPRESS_BUILD_ID }}
128+
tag: ${{ secrets.CYPRESS_RECORD_KEY && github.event_name }}
132129
env:
133130
# Needs to be prefixed with CYPRESS_
134131
CYPRESS_BRANCH: ${{ env.BRANCH }}
@@ -137,11 +134,12 @@ jobs:
137134
# Needed for some specific code workarounds
138135
TESTING: true
139136
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
140-
SPLIT: ${{ matrix.total-containers }}
141-
SPLIT_INDEX: ${{ matrix.containers == 'component' && 0 || matrix.containers }}
137+
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
138+
CYPRESS_BUILD_ID: ${{ github.sha }}-${{ github.run_number }}
139+
CYPRESS_GROUP: Run ${{ matrix.containers == 'component' && 'component' || 'E2E' }}
142140

143141
- name: Upload snapshots
144-
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
142+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
145143
if: always()
146144
with:
147145
name: snapshots_${{ matrix.containers }}
@@ -152,7 +150,7 @@ jobs:
152150
run: docker logs nextcloud-cypress-tests-${{ env.APP_NAME }} > nextcloud.log
153151

154152
- name: Upload NC logs
155-
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
153+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
156154
if: failure() && matrix.containers != 'component'
157155
with:
158156
name: nc_logs_${{ matrix.containers }}

.github/workflows/dependabot-approve-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ jobs:
5353
# Enable GitHub auto merge
5454
- name: Auto merge
5555
uses: alexwilson/enable-github-automerge-action@56e3117d1ae1540309dc8f7a9f2825bc3c5f06ff # v2.0.0
56-
if: startsWith(steps.branchname.outputs.branch, 'dependabot/')
56+
if: startsWith(steps.branchname.outputs.branch, 'dependabot/') && (github.event.pull_request.action == 'opened' || github.event.pull_request.action == 'reopened')
5757
with:
5858
github-token: ${{ secrets.GITHUB_TOKEN }}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ jobs:
6969
7070
- name: Create Pull Request
7171
if: steps.checkout.outcome == 'success'
72-
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
72+
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
7373
with:
74-
token: ${{ secrets.COMMAND_BOT_PAT }} # zizmor: ignore[secrets-outside-env]
74+
token: ${{ secrets.COMMAND_BOT_PAT }}
7575
commit-message: 'fix(deps): Fix npm audit'
7676
committer: GitHub <noreply@github.com>
7777
author: nextcloud-command <nextcloud-command@users.noreply.github.com>

.github/workflows/psalm.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ jobs:
5252
composer remove nextcloud/ocp --dev --no-scripts
5353
composer i
5454
55-
- name: Check for vulnerable PHP dependencies
56-
run: composer require --dev roave/security-advisories:dev-latest
57-
5855
- name: Install nextcloud/ocp
5956
run: composer require --dev nextcloud/ocp:dev-${{ steps.versions.outputs.branches-max }} --ignore-platform-reqs --with-dependencies
6057

.github/workflows/update-stable-titles.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Get PR details and update title
2727
# Renovate already have target branch in the title
2828
if: github.event.pull_request.user.login != 'renovate[bot]'
29-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
29+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
3030
with:
3131
github-token: ${{ secrets.GITHUB_TOKEN }}
3232
script: |

0 commit comments

Comments
 (0)