File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 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+ name : Lint
7+
8+ on :
9+ pull_request :
10+ push :
11+ branches :
12+ - main
13+ - master
14+ - stable*
15+
16+ jobs :
17+ php-lint :
18+ runs-on : self-hosted
19+ strategy :
20+ matrix :
21+ php-versions : ['8.1', '8.2', '8.3']
22+
23+ name : php-lint
24+
25+ steps :
26+ - name : Checkout
27+ uses : actions/checkout@v2
28+
29+ - name : Set up php ${{ matrix.php-versions }}
30+ uses : shivammathur/setup-php@v2
31+ with :
32+ php-version : ${{ matrix.php-versions }}
33+ coverage : none
34+
35+ - name : Lint
36+ run : composer run lint
37+
38+ summary :
39+ runs-on : self-hosted
40+ needs : php-lint
41+
42+ if : always()
43+
44+ name : php-lint-summary
45+
46+ steps :
47+ - name : Summary status
48+ run : if ${{ needs.php-lint.result != 'success' && needs.php-lint.result != 'skipped' }}; then exit 1; fi
You can’t perform that action at this time.
0 commit comments