Skip to content

Commit 203354b

Browse files
authored
Merge pull request #340 from phpDocumentor/modernize_ci
Upgrade ci to standardized pipeline
2 parents 407c40d + 863ec23 commit 203354b

9 files changed

+3941
-332
lines changed

.github/dependabot.yml

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
version: 2
22
updates:
3-
- package-ecosystem: composer
4-
directory: "/"
5-
schedule:
6-
interval: weekly
7-
open-pull-requests-limit: 10
8-
- package-ecosystem: "github-actions"
9-
directory: "/"
10-
schedule:
11-
interval: "weekly"
3+
- package-ecosystem: "composer"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
open-pull-requests-limit: 10
8+
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: "weekly"

.github/workflows/integrate.yaml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# https://docs.github.com/en/actions
2+
3+
name: "Integrate"
4+
5+
on: # yamllint disable-line rule:truthy
6+
push:
7+
branches:
8+
- "5.x"
9+
pull_request: null
10+
# Allow manually triggering the workflow.
11+
workflow_dispatch: null
12+
13+
jobs:
14+
code-coverage:
15+
name: "Code Coverage"
16+
uses: "phpDocumentor/.github/.github/workflows/code-coverage.yml@main"
17+
with:
18+
composer-root-version: "5.x-dev"
19+
20+
coding-standards:
21+
name: "Coding Standards"
22+
uses: "phpDocumentor/.github/.github/workflows/[email protected]"
23+
with:
24+
composer-root-version: "5.x-dev"
25+
26+
dependency-analysis:
27+
name: "Dependency analysis"
28+
uses: "phpDocumentor/.github/.github/workflows/[email protected]"
29+
with:
30+
composer-root-version: "5.x-dev"
31+
32+
lint-root:
33+
name: "Lint root"
34+
uses: "phpDocumentor/.github/.github/workflows/lint.yml@main"
35+
with:
36+
composer-options: "--no-check-publish --ansi"
37+
38+
static-analysis:
39+
name: "Static analysis"
40+
uses: "phpDocumentor/.github/.github/workflows/[email protected]"
41+
with:
42+
php-extensions: "none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter, fileinfo, pcntl, posix"
43+
composer-root-version: "5.x-dev"
44+
45+
unit-tests:
46+
name: "Unit test"
47+
uses: "phpDocumentor/.github/.github/workflows/[email protected]"
48+
with:
49+
composer-root-version: "5.x-dev"
50+
php-versions: "['7.4', '8.0', '8.1', '8.2']"
51+
52+
bc_check:
53+
name: "BC Check"
54+
runs-on: "ubuntu-latest"
55+
steps:
56+
- uses: "actions/checkout@v3"
57+
- name: "fetch tags"
58+
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
59+
- name: "BC Check"
60+
uses: "docker://nyholm/roave-bc-check-ga"

.github/workflows/push.yml

-216
This file was deleted.

.yamllint.yaml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
extends: "default"
2+
3+
ignore: |
4+
.build/
5+
.notes/
6+
vendor/
7+
rules:
8+
braces:
9+
max-spaces-inside-empty: 0
10+
max-spaces-inside: 1
11+
min-spaces-inside-empty: 0
12+
min-spaces-inside: 1
13+
brackets:
14+
max-spaces-inside-empty: 0
15+
max-spaces-inside: 0
16+
min-spaces-inside-empty: 0
17+
min-spaces-inside: 0
18+
colons:
19+
max-spaces-after: 1
20+
max-spaces-before: 0
21+
commas:
22+
max-spaces-after: 1
23+
max-spaces-before: 0
24+
min-spaces-after: 1
25+
comments:
26+
ignore-shebangs: true
27+
min-spaces-from-content: 1
28+
require-starting-space: true
29+
comments-indentation: "enable"
30+
document-end:
31+
present: false
32+
document-start:
33+
present: false
34+
indentation:
35+
check-multi-line-strings: false
36+
indent-sequences: true
37+
spaces: 2
38+
empty-lines:
39+
max-end: 0
40+
max-start: 0
41+
max: 1
42+
empty-values:
43+
forbid-in-block-mappings: true
44+
forbid-in-flow-mappings: true
45+
hyphens:
46+
max-spaces-after: 2
47+
key-duplicates: "enable"
48+
key-ordering: "disable"
49+
line-length: "disable"
50+
new-line-at-end-of-file: "enable"
51+
new-lines:
52+
type: "unix"
53+
octal-values:
54+
forbid-implicit-octal: true
55+
quoted-strings:
56+
quote-type: "double"
57+
trailing-spaces: "enable"
58+
truthy:
59+
allowed-values:
60+
- "false"
61+
- "true"
62+
63+
yaml-files:
64+
- "*.yaml"
65+
- "*.yml"

0 commit comments

Comments
 (0)