Skip to content

Commit 08f0f9b

Browse files
committed
Added base files
1 parent b263f6d commit 08f0f9b

File tree

11 files changed

+5829
-0
lines changed

11 files changed

+5829
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.github/ export-ignore
2+
tests/ export-ignore

.github/workflows/tests.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
schedule:
7+
- cron: "0 6 * * 3"
8+
pull_request:
9+
branches: [ master ]
10+
11+
jobs:
12+
php-version:
13+
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
php-version:
20+
- "8.1"
21+
- "8.2"
22+
- "8.3"
23+
- "8.4"
24+
25+
steps:
26+
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
30+
- name: Install PHP
31+
uses: shivammathur/setup-php@v2
32+
with:
33+
php-version: "${{ matrix.php-version }}"
34+
coverage: "pcov"
35+
36+
- name: Install Composer dependencies
37+
run: composer install --no-progress --ansi
38+
39+
- name: Code style test
40+
run: ./vendor/bin/phpcs
41+
42+
- name: PHPStan code analysis
43+
run: php vendor/bin/phpstan analyze
44+
45+
- name: PHPinsights code analysis
46+
run: php vendor/bin/phpinsights analyse --no-interaction
47+
48+
- name: Execute Rector
49+
run: vendor/bin/rector --dry-run
50+
51+
- name: Run tests
52+
run: ./vendor/bin/phpunit --coverage-clover=coverage.xml
53+
54+
- name: Send code coverage report to Codecov.io
55+
uses: codecov/codecov-action@v4
56+
with:
57+
token: ${{ secrets.CODECOV_TOKEN }}
58+
files: coverage.xml

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/vendor/
2+
/coverage.xml
3+
/.phpunit.result.cache
4+
/.phpcs-cache

composer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name" : "indy2kro/php-iso",
3+
"type" : "library",
4+
"description" : "PHP ISO file Library. A library for reading ISO files using PHP.",
5+
"keywords" : [
6+
"image",
7+
"exif"
8+
],
9+
"homepage" : "https://github.com/indy2kro/php-iso",
10+
"license" : "GPL-2.0",
11+
"require" : {
12+
"php" : ">=8.1"
13+
},
14+
"require-dev" : {
15+
"squizlabs/php_codesniffer" : ">=3.7",
16+
"phpunit/phpunit" : "^11 ",
17+
"phpstan/phpstan": "^2",
18+
"phpstan/phpstan-phpunit": "^2",
19+
"rector/rector": "^2",
20+
"nunomaduro/phpinsights": "^2"
21+
},
22+
"autoload" : {
23+
"psr-4" : {
24+
"PhpIso\\" : "src/"
25+
}
26+
},
27+
"autoload-dev" : {
28+
"psr-4" : {
29+
"PhpIso\\Test\\" : "tests/"
30+
}
31+
},
32+
"config": {
33+
"allow-plugins": {
34+
"dealerdirect/phpcodesniffer-composer-installer": true
35+
}
36+
}
37+
}

0 commit comments

Comments
 (0)