Skip to content

Commit

Permalink
Upgrade virtualization and tools
Browse files Browse the repository at this point in the history
  • Loading branch information
XedinUnknown committed Aug 30, 2023
1 parent 94b2132 commit 20b8e2e
Show file tree
Hide file tree
Showing 15 changed files with 403 additions and 115 deletions.
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
44 changes: 44 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Continuous Integration
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions:
- '7.1'
- '7.2'
- '7.3'
- '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.

124 changes: 72 additions & 52 deletions .idea/php.xml

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

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.

16 changes: 8 additions & 8 deletions .idea/transient-cache.iml

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

Loading

0 comments on commit 20b8e2e

Please sign in to comment.