File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ version : 2
2+
3+ updates :
4+ - package-ecosystem : " composer"
5+ directory : " /"
6+ schedule :
7+ interval : " weekly"
8+ open-pull-requests-limit : 0
9+ labels :
10+ - " php"
11+ - " security"
12+ - " dependencies"
13+ groups :
14+ php-security :
15+ applies-to : security-updates
16+ patterns :
17+ - " *"
18+
19+ - package-ecosystem : " github-actions"
20+ directory : " /"
21+ schedule :
22+ interval : " weekly"
23+ commit-message :
24+ prefix : " build"
25+ labels :
26+ - " dependencies"
27+ - " github-actions"
28+ groups :
29+ github-actions :
30+ patterns :
31+ - " *"
Original file line number Diff line number Diff line change 1818 - name : Assign issues and pull requests
1919 uses : gustavofreze/auto-assign@2.0.0
2020 with :
21- assignees : ' ${{ secrets .ASSIGNEES }}'
21+ assignees : ' ${{ vars .ASSIGNEES }}'
2222 github_token : ' ${{ secrets.GITHUB_TOKEN }}'
2323 allow_self_assign : ' true'
2424 allow_no_assignees : ' true'
Original file line number Diff line number Diff line change 1616
1717 steps :
1818 - name : Checkout
19- uses : actions/checkout@v4
19+ uses : actions/checkout@v6
2020
2121 - name : Configure PHP
2222 uses : shivammathur/setup-php@v2
@@ -35,15 +35,30 @@ jobs:
3535
3636 steps :
3737 - name : Checkout
38- uses : actions/checkout@v4
38+ uses : actions/checkout@v6
3939
40- - name : Use PHP ${{ env.PHP_VERSION }}
40+ - name : Configure PHP
4141 uses : shivammathur/setup-php@v2
4242 with :
4343 php-version : ${{ env.PHP_VERSION }}
4444
4545 - name : Install dependencies
4646 run : composer update --no-progress --optimize-autoloader
4747
48+ - name : Clean up Docker
49+ run : docker system prune -f
50+
51+ - name : Create Docker network
52+ run : docker network create tiny-blocks
53+
54+ - name : Create Docker volume for migrations
55+ run : docker volume create test-adm-migrations
56+
4857 - name : Run tests
49- run : composer tests
58+ run : |
59+ docker run --network=tiny-blocks \
60+ -v ${PWD}:/app \
61+ -v ${PWD}/tests/Integration/Database/Migrations:/test-adm-migrations \
62+ -v /var/run/docker.sock:/var/run/docker.sock \
63+ -w /app \
64+ gustavofreze/php:${{ env.PHP_VERSION }} bash -c "composer tests"
Original file line number Diff line number Diff line change 1+ name : Security checks
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+ schedule :
9+ - cron : " 0 0 * * *"
10+
11+ permissions :
12+ actions : read
13+ contents : read
14+ security-events : write
15+
16+ jobs :
17+ analyze :
18+ name : Analyze
19+ runs-on : ubuntu-latest
20+ strategy :
21+ fail-fast : false
22+ matrix :
23+ language : [ "actions" ]
24+
25+ steps :
26+ - name : Checkout repository
27+ uses : actions/checkout@v6
28+
29+ - name : Initialize CodeQL
30+ uses : github/codeql-action/init@v4
31+ with :
32+ languages : ${{ matrix.language }}
33+
34+ - name : Perform CodeQL analysis
35+ uses : github/codeql-action/analyze@v4
Original file line number Diff line number Diff line change 4949 },
5050 "require-dev" : {
5151 "phpmd/phpmd" : " ^2.15" ,
52- "phpunit/phpunit" : " ^11" ,
53- "phpstan/phpstan" : " ^1" ,
54- "infection/infection" : " ^0" ,
55- "squizlabs/php_codesniffer" : " ^3"
52+ "phpunit/phpunit" : " ^11.5 " ,
53+ "phpstan/phpstan" : " ^1.12 " ,
54+ "infection/infection" : " ^0.32 " ,
55+ "squizlabs/php_codesniffer" : " ^3.13 "
5656 },
5757 "scripts" : {
5858 "test" : " phpunit -d memory_limit=2G --configuration phpunit.xml tests" ,
5959 "phpcs" : " phpcs --standard=PSR12 --extensions=php ./src" ,
6060 "phpmd" : " phpmd ./src text phpmd.xml --suffixes php --ignore-violations-on-exit" ,
6161 "phpstan" : " phpstan analyse -c phpstan.neon.dist --quiet --no-progress" ,
6262 "test-file" : " phpunit --configuration phpunit.xml --no-coverage --filter" ,
63- "mutation-test" : " infection --only-covered -- threads=max --logger-html=report/coverage/mutation-report.html --coverage=report/coverage" ,
63+ "mutation-test" : " infection --threads=max --logger-html=report/coverage/mutation-report.html --coverage=report/coverage" ,
6464 "test-no-coverage" : " phpunit --configuration phpunit.xml --no-coverage tests" ,
6565 "review" : [
6666 " @phpcs" ,
You can’t perform that action at this time.
0 commit comments