-
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (58 loc) · 1.57 KB
/
ci.yml
File metadata and controls
61 lines (58 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: PHP Copy/Paste Detector
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the docker image
run: make build-dev
- name: Start the docker image
run: make start
- name: Check running container
run: docker ps -a
- name: Show php, composer, phing, phive versions
run: make info
- name: Cleanup build artifacts and install composer dependencies
run: make setup
- name: Run test suite
run: make phpunit
- name: Report code coverage
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: make report-code-coverage
- name: Run coding standard
run: make ecs
- name: Run codeSniffer
run: make phpcs
- name: Run PHPStan
run: make phpstan
- name: Stop and remove environment container, network
run: make down
tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ 'ubuntu-latest' ]
php-versions: [ '8.4', '8.5' ]
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring
- uses: actions/checkout@v4
- name: Check php version
run: php -v
- name: Test latest PHPCPD release
run: php ./releases/phpcpd-latest.phar src