-
-
Notifications
You must be signed in to change notification settings - Fork 16
115 lines (105 loc) · 3.13 KB
/
Copy pathcoding-standards.yml
File metadata and controls
115 lines (105 loc) · 3.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
---
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- master
push:
branches:
- master
name: 🧹 Coding standards
jobs:
commit-linting:
timeout-minutes: 4
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
steps:
- name: 📦 Check out the codebase
uses: actions/checkout@v6
- name: 🧐 Lint commits using "commitlint"
uses: wagoid/commitlint-github-action@v6.0.1
with:
configFile: ${{ github.workspace }}/.github/.commitlint.config.mjs
failOnWarnings: false
failOnErrors: false
helpURL: 'https://github.com/conventional-changelog/commitlint/#what-is-commitlint'
yaml-linting:
timeout-minutes: 4
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
steps:
- name: 📦 Check out the codebase
uses: actions/checkout@v6
- name: 🧐 Lint YAML files
uses: ibiqlik/action-yamllint@v3.1.1
with:
config_file: .github/.yamllint.yaml
file_or_dir: '.'
strict: true
markdown-linting:
timeout-minutes: 4
runs-on: ubuntu-latest
concurrency:
cancel-in-progress: true
group: markdown-linting-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
steps:
- name: 📦 Check out the codebase
uses: actions/checkout@v6
- name: 🧐 Lint Markdown files
uses: DavidAnson/markdownlint-cli2-action@v16.0.0
with:
globs: |
**/*.md
!CHANGELOG.md
# composer-linting:
# timeout-minutes: 4
# runs-on: ${{ matrix.os }}
# concurrency:
# cancel-in-progress: true
# group: composer-linting-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
# strategy:
# matrix:
# os:
# - ubuntu-latest
# php-version:
# - '8.1'
# dependencies:
# - locked
# permissions:
# contents: write
# steps:
# - name: 🛠️ Setup PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: ${{ matrix.php-version }}
# extensions: sockets
# ini-values: error_reporting=E_ALL
# coverage: none
# tools: composer, phive
#
# - name: 📦 Check out the codebase
# uses: actions/checkout@v6
#
# - name: 🤖 Validate composer.json and composer.lock
# run: composer validate --ansi --strict
#
# - name: 📥 Install dependencies with composer
# uses: ramsey/composer-install@v3
# with:
# dependency-versions: ${{ matrix.dependencies }}
#
# - name: 📥 Install dependencies with phive
# uses: wayofdev/gh-actions/actions/phive/install@v3.2.0
# with:
# phive-home: '.phive'
# trust-gpg-keys: '0xC00543248C87FB13,0x033E5F8D801A2F8D,0x2DF45277AEF09A2F'
#
# - name: 🔍 Run ergebnis/composer-normalize
# run: .phive/composer-normalize --ansi --dry-run
coding-standards:
permissions:
contents: write
uses: spiral/gh-actions/.github/workflows/cs-fix.yml@master