Skip to content

Commit

Permalink
Feature/cli (#403)
Browse files Browse the repository at this point in the history
* Major updates on WP-CLI and setup
  • Loading branch information
iruzevic authored May 17, 2024
1 parent 6424603 commit 249a574
Show file tree
Hide file tree
Showing 341 changed files with 2,423 additions and 12,404 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Continuous Integration

on:
push:
branches:
- "develop"
- "main"
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

jobs:
phpstan:
name: PHP static code analysis using PHP - ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '8.2', '8.3' ]
steps:
- name: PHP Static code analysis
uses: infinum/eightshift-deploy-actions-public/.github/actions/lint-php-static@main
with:
PHP_VERSION: ${{ matrix.php }}
PROJECT_PATH: ''

phpcs:
name: PHP check coding standards using PHP - ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '8.2', '8.3' ]
steps:
- name: PHP check coding standards
uses: infinum/eightshift-deploy-actions-public/.github/actions/lint-php@main
with:
PHP_VERSION: ${{ matrix.php }}
PROJECT_PATH: ''
179 changes: 0 additions & 179 deletions .github/workflows/integrate.yml

This file was deleted.

8 changes: 0 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
vendor
node_modules
docs
.phpdoc/cache

composer.lock
package-lock.json

# Tests
tests/coverage/*
cliOutput
.phpunit.result.cache
latest_dump.tar.gz

# Editor settings
.vscode/settings.json
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ All notable changes to this project will be documented in this file.

This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/).

## [8.0.0] - TBA
## [8.0.0]

### Changed
- Minimum PHP version is now 8.2.
- Complete refactor of the block registration process for faster and more efficient block registration.
- Custom post type and taxonomy registration labels usage is now more consistent and simplified.
- All enqueue methods now supports new scripts args introduced in WP 6.3.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Infinum and Eightshift
Copyright Infinum

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ Eightshift Libs is maintained and sponsored by
[Eightshift](https://eightshift.com) and [Infinum](https://infinum.com).

## License
Eightshift Libs ©2022 [Eightshift](https://eightshift.com) and [Infinum](https://infinum.com). It is free software, and may be redistributed under the terms specified in the LICENSE file.
Eightshift Libs [Eightshift](https://eightshift.com) and [Infinum](https://infinum.com). It is free software, and may be redistributed under the terms specified in the LICENSE file.
26 changes: 6 additions & 20 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,26 @@
"source": "https://github.com/infinum/eightshift-libs"
},
"require": {
"php": "^7.4 || >=8.0",
"php": ">=8.2",
"ext-dom": "*",
"ext-json": "*",
"ext-libxml": "*",
"php-di/invoker": "^2.3.4",
"php-di/php-di": "^7"
},
"require-dev": {
"brain/monkey": "^2.6.1",
"captainhook/captainhook": "^5.10",
"dealerdirect/phpcodesniffer-composer-installer": "^v1.0.0",
"infinum/eightshift-coding-standards": "2.0.0-beta",
"pestphp/pest": "^1.20",
"php-parallel-lint/php-parallel-lint": "^1.3",
"php-stubs/wordpress-stubs": "^6.3",
"roave/security-advisories": "dev-master",
"szepeviktor/phpstan-wordpress": "^1.3",
"wp-cli/wp-cli": "^2.9",
"yoast/wp-test-utils": "^1.0"
"wp-cli/wp-cli": "^2.9"
},
"autoload": {
"psr-4": {
"EightshiftLibs\\": "src/",
"EightshiftBoilerplate\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
"EightshiftLibs\\": "src/"
}
},
"minimum-stability": "dev",
Expand All @@ -64,7 +55,6 @@
"process-timeout": 2000,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"pestphp/pest-plugin": true,
"composer/installers": true
}
},
Expand All @@ -73,15 +63,11 @@
"vendor/bin/captainhook install -f -s"
],
"test:types": "@php ./vendor/bin/phpstan analyze",
"test:standards": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --runtime-set testVersion 7.4-",
"test:unit": "@php ./vendor/bin/pest --group=unit",
"test:unit-report": "@php ./vendor/bin/pest --group=unit --log-junit tests/coverage/report.xml",
"test:coverage": "@php ./vendor/bin/pest --group=unit --coverage",
"standards:fix": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf --runtime-set testVersion 7.4-",
"test:standards": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --runtime-set testVersion 8.2-",
"standards:fix": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf --runtime-set testVersion 8.2-",
"test": [
"@test:standards",
"@test:types",
"@test:unit"
"@test:types"
]
}
}
Binary file removed package/intro.png
Binary file not shown.
10 changes: 0 additions & 10 deletions patchwork.json

This file was deleted.

Loading

0 comments on commit 249a574

Please sign in to comment.