Skip to content

Commit 7d700b3

Browse files
ci: Updated CI tools
1 parent 979d1bb commit 7d700b3

File tree

5 files changed

+131
-13
lines changed

5 files changed

+131
-13
lines changed

.github/workflows/run-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
strategy:
2222
matrix:
23-
php-version: ['8.0', '8.1', '8.2']
23+
php-version: ['8.0', '8.1', '8.2', '8.3', '8.4']
2424
steps:
2525
- uses: shivammathur/setup-php@v2
2626
with:
@@ -41,4 +41,4 @@ jobs:
4141
php -d "memory_limit=-1" vendor/bin/phpcs --report=full -p ./src
4242
- name: Run PHP Stan
4343
run: |
44-
php -d "memory_limit=-1" vendor/bin/phpstan analyse -c phpstan.neon
44+
php -d "memory_limit=-1" vendor/bin/phpstan analyse

CHANGELOG.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,29 @@
1-
## 1.1.5 (2023-12-02)
1+
# Changelog
22

3-
## 1.1.4 (2023-09-06)
3+
All notable changes to project will be documented in this file.
44

5-
## 1.1.3 (2023-07-24)
5+
## [1.1.5](https://github.com/roadiz/nodetype-contracts/compare/1.1.4...1.1.5) - 2023-12-02
66

7+
### CI/CD
8+
9+
- Added Github actions - ([c311d4e](https://github.com/roadiz/nodetype-contracts/commit/c311d4ebfb8bb940ae4d66457b86ba6bd06ffd7b)) - Ambroise Maupate
10+
11+
## [1.1.3](https://github.com/roadiz/nodetype-contracts/compare/1.1.2...1.1.3) - 2023-07-24
712

813
### Bug Fixes
914

10-
* Fixed implementation namespace use, allow doctrine/collection v2 ([08457be](https://github.com/roadiz/nodetype-contracts/commit/08457be0f205f47d63071c02c8bcb9ad26d8c1b0))
15+
- Fixed implementation namespace use, allow doctrine/collection v2 - ([08457be](https://github.com/roadiz/nodetype-contracts/commit/08457be0f205f47d63071c02c8bcb9ad26d8c1b0)) - Ambroise Maupate
1116

12-
## 1.1.2 (2022-06-27)
17+
## [1.1.2](https://github.com/roadiz/nodetype-contracts/compare/1.1.1...1.1.2) - 2022-06-27
1318

1419
### Features
1520

16-
* Added NodeTypeInterface::getFieldByName ([36184f0](https://github.com/roadiz/nodetype-contracts/commit/36184f014f3316ec49ac18b10cbdbb8a2a1eceec))
21+
- Added NodeTypeInterface::getFieldByName - ([36184f0](https://github.com/roadiz/nodetype-contracts/commit/36184f014f3316ec49ac18b10cbdbb8a2a1eceec)) - Ambroise Maupate
1722

18-
## 1.1.1 (2022-06-27)
23+
## [1.1.1](https://github.com/roadiz/nodetype-contracts/compare/1.1.0...1.1.1) - 2022-06-27
1924

2025
### Features
2126

22-
* NodeTypeInterface is now `Searchable` too ([cd7bdda](https://github.com/roadiz/nodetype-contracts/commit/cd7bdda5871a6b448ffa570abfd32b99b657418a))
27+
- NodeTypeInterface is now Searchable too - ([cd7bdda](https://github.com/roadiz/nodetype-contracts/commit/cd7bdda5871a6b448ffa570abfd32b99b657418a)) - Ambroise Maupate
2328

29+
<!-- generated by git-cliff -->

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
test:
22
vendor/bin/phpcs --report=full --report-file=./report.txt -p ./src
3-
vendor/bin/phpstan analyse -c phpstan.neon
3+
vendor/bin/phpstan analyse

cliff.toml

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# git-cliff ~ default configuration file
2+
# https://git-cliff.org/docs/configuration
3+
#
4+
# Lines starting with "#" are comments.
5+
# Configuration options are organized into tables and keys.
6+
# See documentation for more information on available options.
7+
8+
[changelog]
9+
# changelog header
10+
header = """
11+
# Changelog\n
12+
All notable changes to project will be documented in this file.\n
13+
"""
14+
# template for the changelog body
15+
# https://keats.github.io/tera/docs/#introduction
16+
body = """
17+
{% if version %}\
18+
{% if previous.version %}\
19+
## [{{ version | trim_start_matches(pat="v") }}](<REPO>/compare/{{ previous.version }}...{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }}
20+
{% else %}\
21+
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
22+
{% endif %}\
23+
{% else %}\
24+
## [unreleased]
25+
{% endif %}\
26+
27+
{% set_global breaking_descriptions = [] %}\
28+
{% for commit in commits | filter(attribute="breaking", value=true) %}\
29+
{% if commit.breaking_description %}\
30+
{% set_global breaking_descriptions = breaking_descriptions | concat(with=commit.breaking_description) %}\
31+
{% else %}\
32+
{% set_global breaking_descriptions = breaking_descriptions | concat(with=commit.message) %}\
33+
{% endif %}\
34+
{% endfor %}\
35+
{% if breaking_descriptions | length > 0 %}
36+
### ⚠ Breaking changes
37+
{% for description in breaking_descriptions %}
38+
- {{ description | upper_first }}\
39+
{% endfor %}
40+
{% endif %}\
41+
42+
{% for group, commits in commits | group_by(attribute="group") %}
43+
### {{ group | striptags | trim | upper_first }}
44+
{% for commit in commits
45+
| filter(attribute="scope")
46+
| sort(attribute="scope") %}
47+
- **({{commit.scope}})**{% if commit.breaking %} [**breaking**]{% endif %} \
48+
{{ commit.message }} - ([{{ commit.id | truncate(length=7, end="") }}](<REPO>/commit/{{ commit.id }})) - {{ commit.author.name }}
49+
{%- endfor -%}
50+
{% raw %}\n{% endraw %}\
51+
{%- for commit in commits %}
52+
{%- if commit.scope -%}
53+
{% else -%}
54+
- {% if commit.breaking %} [**breaking**]{% endif %}\
55+
{{ commit.message }} - ([{{ commit.id | truncate(length=7, end="") }}](<REPO>/commit/{{ commit.id }})) - {{ commit.author.name }}
56+
{% endif -%}
57+
{% endfor -%}
58+
{% endfor %}\n
59+
"""
60+
# remove the leading and trailing whitespace from the template
61+
trim = true
62+
# changelog footer
63+
footer = """
64+
<!-- generated by git-cliff -->
65+
"""
66+
# postprocessors
67+
postprocessors = [
68+
{ pattern = '<REPO>', replace = "https://github.com/roadiz/nodetype-contracts" }
69+
]
70+
[git]
71+
# parse the commits based on https://www.conventionalcommits.org
72+
conventional_commits = true
73+
# filter out the commits that are not conventional
74+
filter_unconventional = true
75+
# process each line of a commit as an individual commit
76+
split_commits = false
77+
# regex for preprocessing the commit messages
78+
commit_preprocessors = [
79+
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))"}, # replace issue numbers
80+
]
81+
# regex for parsing and grouping commits
82+
commit_parsers = [
83+
{ message = "^feat", group = "Features" },
84+
{ message = "^fix", group = "Bug Fixes" },
85+
{ message = "^doc", group = "Documentation" },
86+
{ message = "^perf", group = "Performance" },
87+
{ message = "^refactor", group = "Refactor" },
88+
{ message = "^style", group = "Styling" },
89+
{ message = "^test", group = "Testing" },
90+
{ message = "^chore", skip = true },
91+
{ message = "^ci", group = "CI/CD" },
92+
{ body = ".*security", group = "Security" },
93+
{ message = "^revert", group = "Revert" },
94+
]
95+
# protect breaking changes from being skipped due to matching a skipping commit_parser
96+
protect_breaking_commits = false
97+
# filter out the commits that are not matched by commit parsers
98+
filter_commits = true
99+
# regex for matching git tags
100+
tag_pattern = "v?[0-9].*"
101+
102+
# regex for skipping tags
103+
skip_tags = "v0.1.0-beta.1"
104+
# regex for ignoring tags
105+
ignore_tags = ""
106+
# sort the tags topologically
107+
topo_order = true
108+
# sort the commits inside sections by oldest/newest order
109+
sort_commits = "oldest"
110+
# limit the number of commits included in the changelog.
111+
# limit_commits = 42

phpstan.neon renamed to phpstan.dist.neon

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ parameters:
66
- */node_modules/*
77
- */bower_components/*
88
- */static/*
9+
ignoreErrors:
10+
- identifier: missingType.iterableValue
11+
- identifier: missingType.generics
912
reportUnmatchedIgnoredErrors: false
10-
checkMissingIterableValueType: false
11-
checkGenericClassInNonGenericObjectType: false

0 commit comments

Comments
 (0)