Skip to content
Open
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
18 changes: 10 additions & 8 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
.gitattributes export-ignore
.gitignore export-ignore
.github export-ignore
ncs.* export-ignore
phpstan.neon export-ignore
tests/ export-ignore
.gitattributes export-ignore
.github/ export-ignore
.gitignore export-ignore
CLAUDE.md export-ignore
ncs.* export-ignore
phpstan*.neon export-ignore
src/**/*.latte export-ignore
tests/ export-ignore

*.sh eol=lf
*.php* diff=php linguist-language=PHP
*.php* diff=php
*.sh text eol=lf
6 changes: 3 additions & 3 deletions .github/workflows/coding-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.3
coverage: none

- run: composer create-project nette/code-checker temp/code-checker ^3 --no-progress
- run: php temp/code-checker/code-checker --strict-types --no-progress
- run: php temp/code-checker/code-checker --strict-types --no-progress --ignore *.latte


nette_cs:
Expand All @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.3
coverage: none

- run: composer create-project nette/coding-standard temp/coding-standard ^3 --no-progress
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Static Analysis

on:
push:
branches:
- master
on: [push, pull_request]

jobs:
phpstan:
Expand All @@ -13,9 +10,8 @@ jobs:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.5
coverage: none

- run: composer install --no-progress --prefer-dist
- run: composer phpstan
continue-on-error: true # is only informative
9 changes: 5 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Tests
on: [push, pull_request]

env:
php-options: -C -d opcache.enable=0
php-options: -d opcache.enable=0
php-extensions: fileinfo, intl, gd

jobs:
Expand All @@ -27,7 +27,7 @@ jobs:
extensions: ${{ env.php-extensions }}

- run: composer install --no-progress --prefer-dist
- run: vendor/bin/tester tests -p ${{ matrix.sapi }} -s ${{ env.php-options }}
- run: composer tester -- -p ${{ matrix.sapi }} ${{ env.php-options }}
- if: failure()
uses: actions/upload-artifact@v4
with:
Expand All @@ -47,12 +47,13 @@ jobs:
extensions: ${{ env.php-extensions }}

- run: composer update --no-progress --prefer-dist --prefer-lowest --prefer-stable
- run: vendor/bin/tester tests -s ${{ env.php-options }}
- run: composer tester -- ${{ env.php-options }}


code_coverage:
name: Code Coverage
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
Expand All @@ -62,7 +63,7 @@ jobs:
extensions: ${{ env.php-extensions }}

- run: composer install --no-progress --prefer-dist
- run: vendor/bin/tester tests -p phpdbg -s ${{ env.php-options }} --coverage ./coverage.xml --coverage-src ./src
- run: composer tester -- -p phpdbg ${{ env.php-options }} --coverage ./coverage.xml --coverage-src ./src
- run: wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar
- env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/vendor
/composer.lock
tests/lock
Loading