Skip to content

Commit f583d98

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

8 files changed

Lines changed: 27 additions & 29 deletions

.github/actions-lock.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
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+
169b5a5085493975bb375af516b288cc command-compile.yml
6+
3604eedd8d2aa5e2d5c693b9a90760a1 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+
8d41f3688950b42dce423fb9fc1f785c npm-audit-fix.yml
1515
3c4a096b3b7dbaef0f8e5190ffe13518 pr-feedback.yml
1616
2070d9569f327e758b9ce2b924c28fef psalm.yml
1717
7db5b820f3750eebe988005a0bb2febd reuse.yml
18-
9748607544294975609be21633372bdd sync-workflow-templates.yml
19-
48c2c657b87747c9faeb589bcce08923 update-stable-titles.yml
18+
a064cb13abb8fa131c50af7f826f0331 sync-workflow-templates.yml
19+
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: 1 addition & 1 deletion
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}}

.github/workflows/cypress.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,9 @@ 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

@@ -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 }} # zizmor: ignore[secrets-outside-env]
122+
parallel: ${{ secrets.CYPRESS_RECORD_KEY && true }} # zizmor: ignore[secrets-outside-env]
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 }} # zizmor: ignore[secrets-outside-env]
126+
# cypress env
127+
ci-build-id: ${{ secrets.CYPRESS_RECORD_KEY && env.CYPRESS_BUILD_ID }} # zizmor: ignore[secrets-outside-env]
128+
tag: ${{ secrets.CYPRESS_RECORD_KEY && github.event_name }} # zizmor: ignore[secrets-outside-env]
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 }} # zizmor: ignore[secrets-outside-env]
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ 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:
7474
token: ${{ secrets.COMMAND_BOT_PAT }} # zizmor: ignore[secrets-outside-env]
7575
commit-message: 'fix(deps): Fix npm audit'

.github/workflows/sync-workflow-templates.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
echo "DRAFT_ONLY=${draft_only}" >> $GITHUB_ENV
121121
122122
- name: Create Pull Request
123-
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
123+
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
124124
with:
125125
token: ${{ secrets.COMMAND_BOT_WORKFLOWS }} # zizmor: ignore[secrets-outside-env]
126126
commit-message: 'ci(actions): Update workflow templates from organization template repository'

.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)