Skip to content

Commit 0dd5f7d

Browse files
committed
Update metadata and build config
1 parent 254f31d commit 0dd5f7d

File tree

6 files changed

+37
-37
lines changed

6 files changed

+37
-37
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ tools export-ignore
88
.editorconfig export-ignore
99
.gitattributes export-ignore
1010
.gitignore export-ignore
11-
CHANGELOG-*.md export-ignore
1211
Makefile export-ignore
1312
README.md export-ignore

.github/workflows/ci.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
steps:
4141
- name: "Checkout"
42-
uses: "actions/checkout@v3"
42+
uses: "actions/checkout@v4"
4343

4444
- name: "PHP"
4545
uses: "orisai/github-workflows/.github/actions/setup-php@v1"
@@ -72,7 +72,7 @@ jobs:
7272

7373
steps:
7474
- name: "Checkout"
75-
uses: "actions/checkout@v3"
75+
uses: "actions/checkout@v4"
7676

7777
- name: "PHP"
7878
uses: "orisai/github-workflows/.github/actions/setup-php@v1"
@@ -116,7 +116,7 @@ jobs:
116116

117117
steps:
118118
- name: "Checkout"
119-
uses: "actions/checkout@v3"
119+
uses: "actions/checkout@v4"
120120

121121
- name: "PHP"
122122
uses: "orisai/github-workflows/.github/actions/setup-php@v1"
@@ -143,7 +143,7 @@ jobs:
143143
token: "${{ secrets.GITHUB_TOKEN }}"
144144

145145
- name: "Upload logs"
146-
uses: "actions/upload-artifact@v3"
146+
uses: "actions/upload-artifact@v4"
147147
with:
148148
name: "Logs - Tests (${{ matrix.operating-system }}, ${{ matrix.php-version }}, ${{ matrix.composer-flags }})"
149149
path: "var/log"
@@ -186,7 +186,7 @@ jobs:
186186

187187
steps:
188188
- name: "Checkout"
189-
uses: "actions/checkout@v3"
189+
uses: "actions/checkout@v4"
190190

191191
- name: "PHP"
192192
uses: "orisai/github-workflows/.github/actions/setup-php@v1"
@@ -212,7 +212,7 @@ jobs:
212212
stryker-token: "${{ secrets.STRYKER_DASHBOARD_API_KEY }}"
213213

214214
- name: "Upload logs"
215-
uses: "actions/upload-artifact@v3"
215+
uses: "actions/upload-artifact@v4"
216216
with:
217217
name: "Logs - Mutations"
218218
path: "var/coverage/mutations/infection.log"

.github/workflows/dependency-review.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
3030
steps:
3131
- name: "Checkout"
32-
uses: "actions/checkout@v3"
32+
uses: "actions/checkout@v4"
3333

3434
- name: "Dependency Review"
35-
uses: "actions/dependency-review-action@v3"
35+
uses: "actions/dependency-review-action@v4"
3636
with:
3737
base-ref: "${{ github.event.before }}"
3838
head-ref: "${{ github.sha }}"

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased](https://github.com/orisai/cmf-core/compare/...HEAD)
8+
## [Unreleased](https://github.com/orisai/cmf-core/compare/...v1.x)
99

1010
### Added
1111

Makefile

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
_: list
22

3-
# Config
3+
## Config
44

55
PHPCS_CONFIG=tools/phpcs.xml
66
PHPSTAN_CONFIG=tools/phpstan.neon
77
PHPSTAN_BASELINE_CONFIG=tools/phpstan.baseline.neon
88
PHPUNIT_CONFIG=tools/phpunit.xml
99
INFECTION_CONFIG=tools/infection.json
1010

11-
# QA
11+
## Install
1212

13-
qa: ## Check code quality - coding style and static analysis
14-
make cs & make phpstan
13+
update: ## Update all dependencies
14+
make update-php
15+
16+
update-php: ## Update PHP dependencies
17+
composer update
18+
19+
## QA
1520

1621
cs: ## Check PHP files coding style
1722
mkdir -p var/tools/PHP_CodeSniffer
@@ -28,7 +33,7 @@ phpstan: ## Analyse code with PHPStan
2833
phpstan-baseline: ## Add PHPStan errors to baseline
2934
make phpstan ARGS="-b $(PHPSTAN_BASELINE_CONFIG)"
3035

31-
# Tests
36+
## Tests
3237

3338
.PHONY: tests
3439
tests: ## Run all tests
@@ -56,14 +61,22 @@ mutations-infection:
5661
--skip-initial-tests \
5762
$(ARGS)
5863

59-
# Utilities
64+
## Utilities
6065

6166
.SILENT: $(shell grep -h -E '^[a-zA-Z_-]+:.*?$$' $(MAKEFILE_LIST) | sort -u | awk 'BEGIN {FS = ":.*?"}; {printf "%s ", $$1}')
6267

63-
LIST_PAD=20
6468
list:
65-
awk 'BEGIN {FS = ":.*##"; printf "Usage:\n make \033[36m<target>\033[0m\n\nTargets:\n"}'
66-
grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort -u | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-$(LIST_PAD)s\033[0m %s\n", $$1, $$2}'
69+
awk 'BEGIN {FS = ":.*##"; printf "Usage:\n make \033[36m<target>\033[0m\n"}'
70+
@max_len=0; \
71+
for target in $$(grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "} {print $$1}'); do \
72+
len=$${#target}; \
73+
if [ $$len -gt $$max_len ]; then \
74+
max_len=$$len; \
75+
fi \
76+
done; \
77+
awk -v max_len=$$max_len 'BEGIN {FS = ":.*?## "; last_section=""} \
78+
/^## /{last_section=sprintf("\n\033[1m%s\033[0m", substr($$0, 4)); next} \
79+
/^[a-zA-Z_-]+:.*?## /{if (last_section != "") { printf "%s\n", last_section; last_section=""; } printf " \033[36m%-*s\033[0m %s\n", max_len + 1, $$1, $$2}' $(MAKEFILE_LIST)
6780

6881
PRE_PHP=XDEBUG_MODE=off
6982

README.md

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,12 @@
1818
</p>
1919

2020
<p align="center">
21-
<a href="https://github.com/orisai/cmf/actions?query=workflow%3ACI">
22-
<img src="https://github.com/orisai/cmf/workflows/CI/badge.svg">
23-
</a>
24-
<a href="https://coveralls.io/r/orisai/cmf">
25-
<img src="https://badgen.net/coveralls/c/github/orisai/cmf/v1.x?cache=300">
26-
</a>
27-
<a href="https://dashboard.stryker-mutator.io/reports/github.com/orisai/cmf/v1.x">
28-
<img src="https://badge.stryker-mutator.io/github.com/orisai/cmf/v1.x">
29-
</a>
30-
<a href="https://packagist.org/packages/orisai/cmf">
31-
<img src="https://badgen.net/packagist/dt/orisai/cmf?cache=3600">
32-
</a>
33-
<a href="https://packagist.org/packages/orisai/cmf">
34-
<img src="https://badgen.net/packagist/v/orisai/cmf?cache=3600">
35-
</a>
36-
<a href="https://choosealicense.com/licenses/mpl-2.0/">
37-
<img src="https://badgen.net/badge/license/MPL-2.0/blue?cache=3600">
38-
</a>
21+
<a href="https://github.com/orisai/cmf/actions?query=?query=workflow:CI+branch:v1.x"><img src="https://github.com/orisai/cmf/workflows/CI/badge.svg?branch=v1.x"></a>
22+
<a href="https://coveralls.io/github/orisai/cmf?branch=v1.x"><img src="https://badgen.net/coveralls/c/github/orisai/cmf/v1.x?cache=300"></a>
23+
<a href="https://dashboard.stryker-mutator.io/reports/github.com/orisai/cmf/v1.x"><img src="https://img.shields.io/endpoint?style=flat&url=https://badge-api.stryker-mutator.io/github.com/orisai/cmf/v1.x"></a>
24+
<a href="https://packagist.org/packages/orisai/cmf"><img src="https://badgen.net/packagist/dt/orisai/cmf?cache=3600"></a>
25+
<a href="https://packagist.org/packages/orisai/cmf"><img src="https://badgen.net/packagist/v/orisai/cmf?cache=3600"></a>
26+
<a href="https://choosealicense.com/licenses/mpl-2.0/"><img src="https://badgen.net/badge/license/MPL-2.0/blue?cache=3600"></a>
3927
<p>
4028

4129
##

0 commit comments

Comments
 (0)