Skip to content

Commit de1e6db

Browse files
ci(actions): Update workflow templates from organization template repository
Signed-off-by: GitHub <[email protected]>
1 parent 11808e8 commit de1e6db

File tree

4 files changed

+116
-4
lines changed

4 files changed

+116
-4
lines changed

.github/actions-lock.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ d1898b1290d50f874d8092ebda6ee5e1 dependabot-approve-merge.yml
1111
0aa2ea77ebe63ea6f9a8a068eeda6b56 lint-php.yml
1212
ecc3837168cd56bcfed602d48d1ec62e lint-stylelint.yml
1313
c8770d61f6f9339176e7c123fa528111 lint-typescript.yml
14-
3e3175e4952a376d60689110aa0c2771 node-test.yml
14+
8c5eaa94d9b27a234e93cc0a931a3e0e node-test.yml
1515
9f8a0f7b4d6e6212fc62263ba92d6c88 node.yml
1616
364d3748f485e4396e8bd5c10436ffab openapi.yml
1717
e903ac1234923756dabd0fa2e8deab99 phpunit-mariadb.yml
@@ -23,5 +23,5 @@ da384ce3c502c4db682fe9def63cbac0 phpunit-mysql.yml
2323
d7cf735c67e59ca0c943dae96b436d64 psalm.yml
2424
1ed6482c19f2825139a077870ef7a38c reuse.yml
2525
800d5b188aa885626cf4169fa2dfea9e update-nextcloud-ocp-approve-merge.yml
26-
28a598fdceba85422dd05d48b6a27022 update-nextcloud-ocp.yml
26+
43ad17165ffe7b396b69afb4cfd799be update-nextcloud-ocp.yml
2727
48c2c657b87747c9faeb589bcce08923 update-stable-titles.yml

.github/workflows/node-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
run: npm run test --if-present
9292

9393
- name: Collect coverage
94-
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
94+
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
9595
with:
9696
files: ./coverage/lcov.info
9797

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
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+
#
6+
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
7+
# SPDX-License-Identifier: MIT
8+
9+
name: Node tests
10+
11+
on:
12+
pull_request:
13+
push:
14+
branches:
15+
- main
16+
- master
17+
- stable*
18+
19+
permissions:
20+
contents: read
21+
22+
concurrency:
23+
group: node-tests-${{ github.head_ref || github.run_id }}
24+
cancel-in-progress: true
25+
26+
jobs:
27+
changes:
28+
runs-on: ubuntu-latest-low
29+
permissions:
30+
contents: read
31+
pull-requests: read
32+
33+
outputs:
34+
src: ${{ steps.changes.outputs.src}}
35+
36+
steps:
37+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
38+
id: changes
39+
continue-on-error: true
40+
with:
41+
filters: |
42+
src:
43+
- '.github/workflows/**'
44+
- '__tests__/**'
45+
- '__mocks__/**'
46+
- 'src/**'
47+
- 'appinfo/info.xml'
48+
- 'package.json'
49+
- 'package-lock.json'
50+
- 'tsconfig.json'
51+
- '**.js'
52+
- '**.ts'
53+
- '**.vue'
54+
55+
test:
56+
runs-on: ubuntu-latest
57+
58+
needs: changes
59+
if: needs.changes.outputs.src != 'false'
60+
61+
steps:
62+
- name: Checkout
63+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
64+
with:
65+
persist-credentials: false
66+
67+
- name: Read package.json node and npm engines version
68+
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
69+
id: versions
70+
with:
71+
fallbackNode: '^24'
72+
fallbackNpm: '^11.3'
73+
74+
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
75+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
76+
with:
77+
node-version: ${{ steps.versions.outputs.nodeVersion }}
78+
79+
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
80+
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
81+
82+
- name: Install dependencies & build
83+
env:
84+
CYPRESS_INSTALL_BINARY: 0
85+
run: |
86+
npm ci
87+
npm run build --if-present
88+
89+
- name: Test
90+
run: npm run test --if-present
91+
92+
- name: Test and process coverage
93+
run: npm run test:coverage --if-present
94+
95+
- name: Collect coverage
96+
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
97+
with:
98+
files: ./coverage/lcov.info
99+
100+
summary:
101+
permissions:
102+
contents: none
103+
runs-on: ubuntu-latest-low
104+
needs: [changes, test]
105+
106+
if: always()
107+
108+
name: test-summary
109+
110+
steps:
111+
- name: Summary status
112+
run: if ${{ needs.changes.outputs.src != 'false' && needs.test.result != 'success' }}; then exit 1; fi

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

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

112112
- name: Create Pull Request
113113
if: steps.checkout.outcome == 'success'
114-
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7.0.9
114+
uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
115115
with:
116116
token: ${{ secrets.COMMAND_BOT_PAT }}
117117
commit-message: 'chore(dev-deps): Bump nextcloud/ocp package'

0 commit comments

Comments
 (0)