Skip to content

Commit

Permalink
Merge pull request #21 from wp-oop/feature/update-repo
Browse files Browse the repository at this point in the history
Upgrade Repo
  • Loading branch information
XedinUnknown authored Aug 30, 2023
2 parents 94b2132 + edc51c8 commit 1e5f21d
Show file tree
Hide file tree
Showing 31 changed files with 4,404 additions and 936 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4

[*.js]
indent_size = 2

[*.json]
indent_size = 2

[*.yml]
indent_size = 2
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
BASE_PATH=./
BUILD_ROOT_PATH=/app/
PROJECT_NAME=wp-oop_transient-cache

PHP_BUILD_VERSION=7.4
PHP_TEST_VERSION=8.2

HOST_IP_ADDRESS=host-gateway
5 changes: 3 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ tests export-ignore
docker export-ignore
docker-compose.yml export-ignore
.env.example export-ignore
.travis.yml export-ignore
.gitattributes export-ignore
.gitignore export-ignore
composer.lock export-ignore
phpunit.xml export-ignore
phpunit.xml.dist export-ignore
psalm.xml.dist export-ignore
phpcs.xml.dist export-ignore
41 changes: 41 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Continuous Integration
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions:
- '7.4'
- '8.0'
- '8.1'
- '8.2'

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Analysing source code
run: find ./src/ ./inc/ ./tests/ -type f -name '*.php' -print0 | xargs -0 -L 1 -P 4 -- php -l

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
uses: ramsey/composer-install@v1
with:
dependency-versions: highest
composer-options: "--prefer-dist"

- name: PHPUnit
run: ./vendor/bin/phpunit

- name: Psalm
run: ./vendor/bin/psalm --show-info=false --threads=8 --diff

- name: PHPCS
run: ./vendor/bin/phpcs -s --report-source --runtime-set ignore_warnings_on_exit 1
17 changes: 7 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
/vendor/
/nbproject/private/
/tests/coverage/
/tests/log/
/build/
/.idea/dictionaries/
/.idea/workspace.xml
/.idea/tasks.xml
/.idea/deployment.xml
/.idea/vagrant.xml
/.idea/misc.xml
/.idea/codeStyles/
/.idea/inspectionProfiles/
/.idea/codeStyles
/.env
/.idea/misc.xml
/.idea/phpspec.xml
/.idea/codeception.xml
/.env

/.phpunit.result.cache
2 changes: 1 addition & 1 deletion .idea/php-test-framework.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

181 changes: 128 additions & 53 deletions .idea/php.xml

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions .idea/phpunit.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion .idea/remote-mappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 34 additions & 3 deletions .idea/transient-cache.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .psalm/constants.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

/**
* @link https://github.com/php-stubs/wordpress-globals/blob/master/wordpress-globals.php
*/

// ./wp-includes/wp-db.php

define('EZSQL_VERSION', 'WP1.25');
define('OBJECT', 'OBJECT');
define('OBJECT_K', 'OBJECT_K');
define('ARRAY_A', 'ARRAY_A');
define('ARRAY_N', 'ARRAY_N');
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [[*next-version*]] - YYYY-MM-DD
### Removed
- Drop PHP < 7.4 (#21);

### Added
- Allow PHP 8 (#21);
- Add static analysis and fix reported issues (#21);

### Fixed
- Correct license and license holder (#21);

## [0.1.0-alpha4] - 2020-10-14
### Fixed
Expand Down
Loading

0 comments on commit 1e5f21d

Please sign in to comment.