11# This workflow is provided via the organization template repository
22#
3- # https://github.com/nextcloud/.github
3+ # https://github.com/nextcloud-libraries /.github
44# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
55#
66# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
@@ -18,62 +18,28 @@ concurrency:
1818 cancel-in-progress : true
1919
2020jobs :
21- changes :
22- runs-on : ubuntu-latest
23- permissions :
24- contents : read
25- pull-requests : read
26-
27- outputs :
28- src : ${{ steps.changes.outputs.src}}
29-
30- steps :
31- - uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
32- id : changes
33- continue-on-error : true
34- with :
35- filters : |
36- src:
37- - '.github/workflows/**'
38- - 'src/**'
39- - 'appinfo/info.xml'
40- - 'package.json'
41- - 'package-lock.json'
42- - 'tsconfig.json'
43- - '.eslintrc.*'
44- - '.eslintignore'
45- - '**.js'
46- - '**.ts'
47- - '**.vue'
48-
4921 lint :
5022 runs-on : ubuntu-latest
5123
52- needs : changes
53- if : needs.changes.outputs.src != 'false'
54-
55- name : NPM lint
24+ name : eslint
5625
5726 steps :
5827 - name : Checkout
59- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2 .2
28+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0 .2
6029 with :
6130 persist-credentials : false
6231
63- - name : Read package.json node and npm engines version
64- uses : skjnldsv/read -package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
32+ - name : Read package.json
33+ uses : nextcloud-libraries/parse -package-engines-action@122ae05d4257008180a514e1ddeb0c1b9d094bdd # v0.1.0
6534 id : versions
66- with :
67- fallbackNode : ' ^20'
68- fallbackNpm : ' ^10'
6935
70- - name : Set up node ${{ steps.versions.outputs.nodeVersion }}
71- uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1 .0
36+ - name : Set up node
37+ uses : actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2 .0
7238 with :
73- node-version : ${{ steps.versions.outputs.nodeVersion }}
39+ node-version : ${{ steps.versions.outputs.node-version }}
7440
75- - name : Set up npm ${{ steps.versions.outputs.npmVersion }}
76- run : npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
41+ - name : Set up npm
42+ run : npm i -g 'npm@${{ steps.versions.outputs.package-manager-version }}'
7743
7844 - name : Install dependencies
7945 env :
8349
8450 - name : Lint
8551 run : npm run lint
86-
87- summary :
88- permissions :
89- contents : none
90- runs-on : ubuntu-latest
91- needs : [changes, lint]
92-
93- if : always()
94-
95- # This is the summary, we just avoid to rename it so that branch protection rules still match
96- name : eslint
97-
98- steps :
99- - name : Summary status
100- run : if ${{ needs.changes.outputs.src != 'false' && needs.lint.result != 'success' }}; then exit 1; fi
0 commit comments