Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use shields.io for badges in README #60

Merged
merged 2 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@ help: Makefile
## build Build the Docker images.
.PHONY: build
build:
docker-compose build
docker compose build

## up Start the Docker stack.
.PHONY: up
up: .up

.up:
docker-compose up -d
docker compose up -d

## down Stop the Docker stack.
.PHONY: down
down: .down

.down:
docker-compose down
docker compose down

## update Rebuild Docker images and start stack.
.PHONY: update
Expand All @@ -59,12 +59,12 @@ install: install-8.3
## install-8.2 Install PHP dependencies with PHP 8.2.
.PHONY: install-8.2
install-8.2:
docker-compose run --rm php-8.2 composer install
docker compose run --rm php-8.2 composer install

## install-8.3 Install PHP dependencies with the default PHP version (8.3).
.PHONY: install-8.3
install-8.3:
docker-compose run --rm php-8.3 composer install
docker compose run --rm php-8.3 composer install

## php-cli Enter a shell for the default PHP version (8.3).
.PHONY: .php-cli
Expand All @@ -73,12 +73,12 @@ php-cli: php-8.3-cli
## php-8.2-cli Enter a shell for PHP 8.2.
.PHONY: php-8.2-cli
php-8.2-cli:
docker-compose run --rm php-8.2 sh
docker compose run --rm php-8.2 sh

## php-8.3-cli Enter a shell for PHP 8.3.
.PHONY: php-8.3-cli
php-8.3-cli:
docker-compose run --rm php-8.3 sh
docker compose run --rm php-8.3 sh

##
## Tests and code quality
Expand All @@ -96,12 +96,12 @@ php-tests: php-8.2-tests php-8.3-tests
## php-8.2-tests Run tests with PHP 8.2.
.PHONY: php-8.2-tests
php-8.2-tests:
docker-compose run --rm php-8.2 ./vendor/bin/phpunit
docker compose run --rm php-8.2 ./vendor/bin/phpunit

## php-8.3-tests Run tests with PHP 8.3.
.PHONY: php-8.3-tests
php-8.3-tests:
docker-compose run --rm php-8.3 ./vendor/bin/phpunit
docker compose run --rm php-8.3 ./vendor/bin/phpunit

## php-tests-coverage Run the tests for default PHP version and create coverage report.
.PHONY: php-tests-coverage
Expand All @@ -110,23 +110,23 @@ php-tests-coverage: php-8.3-tests-html-coverage
## php-8.2-tests-html-coverage Run the tests with PHP 8.2 including coverage report as HTML.
.PHONY: php-8.2-tests-html-coverage
php-8.2-tests-html-coverage:
docker-compose run --rm php-8.2 ./vendor/bin/phpunit --coverage-html ./coverage
docker compose run --rm php-8.2 ./vendor/bin/phpunit --coverage-html ./coverage

## php-8.3-tests-html-coverage Run the tests with PHP 8.3 including coverage report as HTML.
.PHONY: php-8.3-tests-html-coverage
php-8.3-tests-html-coverage:
docker-compose run --rm php-8.3 ./vendor/bin/phpunit --coverage-html ./coverage
docker compose run --rm php-8.3 ./vendor/bin/phpunit --coverage-html ./coverage

## php-code-validation Run code fixers and linters with default PHP version (8.2).
.PHONY: php-code-validation
php-code-validation:
docker-compose run --rm php-8.3 ./vendor/bin/php-cs-fixer fix
docker-compose run --rm php-8.3 ./vendor/bin/psalm --show-info=false --no-diff
docker compose run --rm php-8.3 ./vendor/bin/php-cs-fixer fix
docker compose run --rm php-8.3 ./vendor/bin/psalm --show-info=false --no-diff

## php-mutation-testing Run mutation testing with default PHP version (8.2).
.PHONY: php-mutation-testing
php-mutation-testing:
docker-compose run --rm php-8.3 ./vendor/bin/infection --show-mutations --only-covered --threads=8
docker compose run --rm php-8.3 ./vendor/bin/infection --show-mutations --only-covered --threads=8

##
## CI
Expand All @@ -136,14 +136,14 @@ php-mutation-testing:
## php-8.2-tests-ci Run the tests with PHP 8.2 for CI.
.PHONY: php-8.2-tests-ci
php-8.2-tests-ci:
docker-compose run --rm php-8.2 ./vendor/bin/phpunit --coverage-clover ./coverage.xml
docker compose run --rm php-8.2 ./vendor/bin/phpunit --coverage-clover ./coverage.xml

## php-8.3-tests-ci Run the tests with PHP 8.3 for CI.
.PHONY: php-8.3-tests-ci
php-8.3-tests-ci:
docker-compose run --rm php-8.3 ./vendor/bin/phpunit
docker compose run --rm php-8.3 ./vendor/bin/phpunit

## php-mutation-testing-ci Run mutation testing for CI.
.PHONY: php-mutation-testing-ci
php-mutation-testing-ci:
docker-compose run --rm php-8.3 ./vendor/bin/infection --only-covered --threads=max
docker compose run --rm php-8.3 ./vendor/bin/infection --only-covered --threads=max
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ This Symfony bundle includes Symfony normalizers for automatic normalization and

As it's a central part of an application, it's tested thoroughly (including mutation testing). Currently, more than 80% of the lines of code in this repository are tests.

[![Latest Stable Version](http://poser.pugx.org/digital-craftsman/date-time-precision/v)](https://packagist.org/packages/digital-craftsman/date-time-precision)
[![PHP Version Require](http://poser.pugx.org/digital-craftsman/date-time-precision/require/php)](https://packagist.org/packages/digital-craftsman/date-time-precision)
[![Latest Stable Version](https://img.shields.io/badge/stable-0.10.0-blue)](https://packagist.org/packages/digital-craftsman/date-time-precision)
[![PHP Version Require](https://img.shields.io/badge/php-8.2|8.3-5b5d95)](https://packagist.org/packages/digital-craftsman/date-time-precision)
[![codecov](https://codecov.io/gh/digital-craftsman-de/date-time-precision/branch/main/graph/badge.svg?token=vZ0IvKPj2f)](https://codecov.io/gh/digital-craftsman-de/date-time-precision)
[![Total Downloads](http://poser.pugx.org/digital-craftsman/date-time-precision/downloads)](https://packagist.org/packages/digital-craftsman/date-time-precision)
[![License](http://poser.pugx.org/digital-craftsman/date-time-precision/license)](https://packagist.org/packages/digital-craftsman/date-time-precision)
![Packagist Downloads](https://img.shields.io/packagist/dt/digital-craftsman/date-time-precision)
![Packagist License](https://img.shields.io/packagist/l/digital-craftsman/date-time-precision)

## Installation and configuration

Expand Down
Loading