Skip to content
Merged
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
3 changes: 0 additions & 3 deletions .bowerrc

This file was deleted.

15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,23 @@ indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.js]
indent_size = 2

[*.md]
indent_size = unset
trim_trailing_whitespace = false

[*.php]
ij_php_space_before_short_closure_left_parenthesis = false
ij_php_space_after_type_cast = true

[*.yaml]
indent_size = 2

[*.yml]
indent_size = 2

[LICENSE*]
indent_style = unset
indent_size = unset
50 changes: 44 additions & 6 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,44 @@
# Ignore all test and documentation for archive
/.github export-ignore
/.gitattributes export-ignore
/.scrutinizer.yml export-ignore
/.travis.yml export-ignore
/docs export-ignore
# Autodetect text files
* text=auto eol=lf

# ...Unless the name matches the following overriding patterns

# Definitively text files
*.php text
*.css text
*.js text
*.txt text
*.md text
*.xml text
*.json text
*.bat text
*.sql text
*.yml text

# Ensure those won't be messed up with
*.png binary
*.jpg binary
*.gif binary
*.ttf binary

# Avoid merge conflicts in CHANGELOG
# https://about.gitlab.com/2015/02/10/gitlab-reduced-merge-conflicts-by-90-percent-with-changelog-placeholders/
/CHANGELOG.md merge=union

# Exclude files from the archive
/.editorconfig export-ignore
/.gitattributes export-ignore
/.github export-ignore
/.gitignore export-ignore
/.styleci.yml export-ignore
/codeception.yml export-ignore
/composer-require-checker.json export-ignore
/docs export-ignore
/ecs.php export-ignore
/infection.json* export-ignore
/phpstan*.neon* export-ignore
/phpunit.xml.dist export-ignore
/psalm.xml export-ignore
/rector.php export-ignore
/runtime export-ignore
/tests export-ignore
14 changes: 0 additions & 14 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

7 changes: 0 additions & 7 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

# Maintain dependencies for Composer
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "daily"
versioning-strategy: increase-if-necessary
48 changes: 22 additions & 26 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,28 @@
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
name: build

push:
permissions:
contents: read

on:
pull_request: &ignore-paths
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
- ".editorconfig"
- ".gitattributes"
- ".gitignore"
- "docker-compose.yml"
- "docs/**"
- "LICENSE"
- "README.md"

name: build
push: *ignore-paths

jobs:
build:
uses: yiisoft/actions/.github/workflows/codeception.yml@master
codeception:
uses: yiisoft/yii2-actions/.github/workflows/codeception.yml@master
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
extensions: dom, json, gd, imagick
os: >-
['ubuntu-latest', 'windows-latest']
php: >-
['8.1', '8.2', '8.3', '8.4']
codeception-command: vendor/bin/codecept run --env php-builtin --coverage-xml
coverage-file: tests/support/output/coverage.xml
extensions: dom, json, gd, imagick, pdo_sqlite
php-version: '["8.3","8.4","8.5"]'
23 changes: 23 additions & 0 deletions .github/workflows/dependency-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
on:
pull_request: &ignore-paths
paths-ignore:
- ".editorconfig"
- ".gitattributes"
- ".gitignore"
- "docker-compose.yml"
- "docs/**"
- "LICENSE"
- "README.md"

push: *ignore-paths

name: Composer require checker

permissions:
contents: read
pull-requests: write

jobs:
composer-require-checker:
uses: yiisoft/yii2-actions/.github/workflows/composer-require-checker.yml@master
42 changes: 42 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: docker

permissions:
contents: read

on:
pull_request: &ignore-paths
paths-ignore:
- ".editorconfig"
- ".gitattributes"
- ".gitignore"
- "docs/**"
- "LICENSE"
- "README.md"

push: *ignore-paths

jobs:
apache:
runs-on: ubuntu-latest

steps:
- name: Checkout.
uses: actions/checkout@v6

- name: Build and start containers.
run: docker compose up -d --build

- name: Fix permissions.
run: docker compose exec -T php bash -c "chown -R www-data:www-data /app/runtime /app/web/assets && chmod -R ug+rwX /app/runtime /app/web/assets"

- name: Install Node.js and npm.
run: docker compose exec -T php bash -c "apt-get update && apt-get install -y nodejs npm"

- name: Composer install.
run: docker compose exec -T php composer install --prefer-dist --no-progress --optimize-autoloader

- name: Codeception build.
run: docker compose exec -T php vendor/bin/codecept build

- name: Codeception tests.
run: docker compose exec -T php vendor/bin/codecept run
Comment thread
terabytesoftw marked this conversation as resolved.
25 changes: 25 additions & 0 deletions .github/workflows/ecs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
on:
pull_request: &ignore-paths
paths-ignore:
- ".editorconfig"
- ".gitattributes"
- ".gitignore"
- "docker-compose.yml"
- "docs/**"
- "LICENSE"
- "README.md"

push: *ignore-paths

name: ecs

permissions:
contents: read
pull-requests: write

jobs:
easy-coding-standard:
uses: yiisoft/yii2-actions/.github/workflows/ecs.yml@master
with:
php-version: '["8.3"]'
25 changes: 25 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
on:
pull_request: &ignore-paths
paths-ignore:
- ".editorconfig"
- ".gitattributes"
- ".gitignore"
- "docker-compose.yml"
- "docs/**"
- "LICENSE"
- "README.md"

push: *ignore-paths

name: static analysis

permissions:
contents: read
pull-requests: write

jobs:
phpstan:
uses: yiisoft/yii2-actions/.github/workflows/phpstan.yml@master
with:
hook: vendor/bin/codecept build
69 changes: 41 additions & 28 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,39 +1,52 @@
# phpstorm project files
.idea

# netbeans project files
nbproject
# codecoverage (if present)
code_coverage

# zend studio for eclipse project files
.buildpath
.project
.settings
# codeception (if present)
c3.php
tests/Support/_generated
tests/Support/output

# windows thumbnail cache
Thumbs.db
# composer
composer.lock

# composer vendor dir
/vendor
# database
*.sqlite

# composer itself is not needed
composer.phar
# gitHub copilot config (if present)
.copilot/
.github/copilot/**

# Mac DS_Store Files
# mac ds_store (if present)
.DS_Store

# phpunit itself is not needed
phpunit.phar
# local phpunit config
/phpunit.xml
# netbeans project (if present)
nbproject

tests/_output/*
tests/_support/_generated
# node_modules (if present)
node_modules
package-lock.json

#vagrant folder
/.vagrant
# phpstorm project (if present)
.idea

# node_modules
node_modules
# phpunit (if present)
.phpunit.cache
.phpunit.result.cache
phpunit.xml*

# vagrant (if present)
.vagrant

# vendor
vendor

#codeception
/c3.php
# vscode project (if present)
.vscode

# windows thumbnail cache (if present)
Thumbs.db

# zend studio for eclipse project (if present)
.buildpath
.project
.settings
Loading
Loading