Skip to content

Commit 8b092cf

Browse files
author
DKravtsov
committed
phpcpd 7.0.1 release.
1 parent 7724245 commit 8b092cf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+216395
-2217
lines changed

.editorconfig

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
insert_final_newline = true
8+
indent_style = space
9+
indent_size = 4
10+
trim_trailing_whitespace = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
15+
[*.yml]
16+
indent_size = 2
17+
18+
[{composer.json,Makefile}]
19+
indent_style = tab

.env

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
###> docker-compose configuration ###
2+
COMPOSE_PROJECT_NAME=phpcpd
3+
# XDEBUG_CONFIG possible values: main|osx. Use main value for Linux and Windows, osx value for MacOS.
4+
XDEBUG_CONFIG=main
5+
###< docker-compose configuration ###

.github/FUNDING.yml

-1
This file was deleted.

.github/workflows/ci.yml

+28-69
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,33 @@
1-
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
1+
name: PHP Copy/Paste Detector
22

33
on:
4-
- "pull_request"
5-
- "push"
6-
7-
name: "CI"
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
pull_request:
9+
branches:
10+
- main
11+
- develop
12+
release:
13+
types: [published]
814

915
jobs:
10-
coding-guidelines:
11-
name: "Coding Guidelines"
12-
13-
runs-on: "ubuntu-latest"
14-
15-
steps:
16-
- name: "Checkout"
17-
uses: "actions/checkout@v2"
18-
19-
- name: "Run friendsofphp/php-cs-fixer"
20-
run: "./tools/php-cs-fixer fix --dry-run --show-progress=dots --using-cache=no --verbose"
21-
22-
type-checker:
23-
name: "Type Checker"
24-
25-
runs-on: "ubuntu-latest"
26-
27-
steps:
28-
- name: "Checkout"
29-
uses: "actions/checkout@v2"
30-
31-
- name: "Update dependencies with composer"
32-
run: "./tools/composer update --no-ansi --no-interaction --no-progress"
33-
34-
- name: "Run vimeo/psalm"
35-
run: "./tools/psalm --config=.psalm/config.xml --no-progress --shepherd --show-info=false --stats"
36-
37-
tests:
38-
name: "Tests"
39-
40-
runs-on: "ubuntu-latest"
41-
42-
strategy:
43-
matrix:
44-
php-version:
45-
- "8.1"
46-
- "8.2"
47-
16+
build:
17+
runs-on: ubuntu-latest
4818
steps:
49-
- name: "Checkout"
50-
uses: "actions/checkout@v2"
51-
52-
- name: "Install PHP with extensions"
53-
uses: "shivammathur/setup-php@v2"
54-
with:
55-
php-version: "${{ matrix.php-version }}"
56-
coverage: "pcov"
57-
58-
- name: "Cache dependencies installed with composer"
59-
uses: "actions/cache@v1"
60-
with:
61-
path: "~/.composer/cache"
62-
key: "php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}"
63-
restore-keys: "php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"
64-
65-
- name: "Install dependencies with composer"
66-
run: "./tools/composer update --no-ansi --no-interaction --no-progress"
67-
68-
- name: "Run tests with phpunit/phpunit"
69-
run: "./tools/phpunit --coverage-clover=coverage.xml"
70-
71-
- name: "Send code coverage report to Codecov.io"
72-
env:
73-
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
74-
run: "bash <(curl -s https://codecov.io/bash) || true"
19+
- uses: actions/checkout@v4
20+
- name: Build the docker image
21+
run: make build-dev
22+
- name: Start the docker image
23+
run: make start
24+
- name: Check running container
25+
run: docker ps -a
26+
- name: Show php, composer, phing, phive versions
27+
run: make info
28+
- name: Cleanup build artifacts and install dependencies with composer
29+
run: make setup
30+
- name: Run test suite
31+
run: make phpunit
32+
- name: Stop and remove environment container, network
33+
run: make down

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
/build/phar
22
/build/*.phar*
3-
/.idea
43
/vendor
54
/.php-cs-fixer.php
65
/.php-cs-fixer.cache
76
/.phpunit.cache
87
/composer.lock
8+
reports/*
9+
!reports/.gitkeep

.idea/.gitignore

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeception.xml

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/htdocs.iml

+14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/php-docker-settings.xml

+25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/php.xml

+100
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/phpspec.xml

+16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/phpunit.xml

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)