Skip to content

Commit

Permalink
v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zalevsk1y committed Oct 11, 2023
1 parent 8c602e7 commit e62ce09
Show file tree
Hide file tree
Showing 597 changed files with 31,070 additions and 22,135 deletions.
86 changes: 86 additions & 0 deletions .github/workflows/wordpress-tests-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: CI

on:
push:
branches:
- development
- master

jobs:
build:
runs-on: ubuntu-latest

services:
mysql:
image: bitnami/mysql:8.0.20
env:
MYSQL_ROOT_PASSWORD: 12345
MYSQL_DATABASE: wordpress_test
MYSQL_USER: wordpress_test
MYSQL_PASSWORD: 11111
MYSQL_ROOT_HOST: "%"
MYSQL_AUTHENTICATION_PLUGIN: mysql_native_password

ports:
- 3306:3306



strategy:
matrix:
include:
- php-version: 7.3
wp-version: latest
php-unit-version: 9.6.13

steps:
- name: Checkout code
uses: actions/checkout@v2

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

- name: Install tar package
run: sudo apt-get install tar

- name: Install MySQL Client
run: sudo apt-get install -y mysql-client

- name: Install dependencies
run: composer require sunra/php-simple-html-dom-parser:1.5.2

- name: Remove xdebug.ini if exists
run: |
if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then
phpenv config-rm xdebug.ini
else
echo "xdebug.ini does not exist"
fi
- name: Install PHPUnit Polyfills
run: composer require yoast/phpunit-polyfills

- name: Install PHPUnit
run: composer require -W phpunit/phpunit


- name: Set up WordPress tests
run: |
if [[ ! -z "${{ matrix.wp-version }}" ]] ; then
bash bin/install-wp-tests.sh wordpress_test wordpress_test 11111 127.0.0.1 ${{ matrix.wp-version }} true
fi
- name: Run tests
run: |
composer run test2
- name: Upload code coverage to Scrutinizer
run: |
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover Coverage.clover

11 changes: 9 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/assets/node_modules
/lib/node_modules
/.pnp
vendor/*
.pnp.js


# logs
/logs



Expand All @@ -26,3 +27,9 @@ composer.lock
npm-debug.log*
yarn-debug.log*
yarn-error.log*

/public/js/*

/.phpunit.cache
.phpcs.xml.dist
.phpunit.result.cache
49 changes: 0 additions & 49 deletions .phpcs.xml.dist

This file was deleted.

Empty file modified .scrutinizer.yml
100644 → 100755
Empty file.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ notifications:

branches:
only:
- tempMove
- master

cache:
Expand All @@ -18,6 +19,8 @@ cache:

matrix:
include:
- php: 8.1
env: WP_VERSION=latest
- php: 7.2
env: WP_VERSION=latest
- php: 7.1
Expand Down Expand Up @@ -49,7 +52,6 @@ before_script:
composer global require wp-coding-standards/wpcs
phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs
fi
script:
- |
if [[ ! -z "$WP_VERSION" ]] ; then
Expand All @@ -60,7 +62,6 @@ script:
if [[ "$WP_TRAVISCI" == "phpcs" ]] ; then
phpcs
fi
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover Coverage.clover
- php ocular.phar code-coverage:upload --format=php-clover Coverage.clover
Empty file modified CHANGELOG.md
100644 → 100755
Empty file.
Loading

0 comments on commit e62ce09

Please sign in to comment.