Skip to content

Commit

Permalink
Create new service to delete WP user (#41)
Browse files Browse the repository at this point in the history
* VNN-2507 Create new service to delete wp user
* VNN-2507 Update required php version

---------

Co-authored-by: annasaa <annasalamin89@gmail.com>
  • Loading branch information
annasalamin and annasaa authored Apr 3, 2023
1 parent 9ed4fa5 commit 1baa19d
Showing 10 changed files with 669 additions and 331 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build, Test

on: push

jobs:
test:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-latest', 'macos-latest']
php-versions: ['7.4', '8.0']
steps:
- uses: actions/checkout@v3
with:
fetch-depth: "0"

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

- name: Install Dependencies
run: composer install --prefer-dist --dev

- name: Execute unit tests via PHPUnit
run: vendor/bin/phpunit --stop-on-failure

- name: Schema/PHPCS
run: vendor/bin/phpcs --standard=PSR2 src
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
language: php

php:
- 7.2
- 7.3
- 7.4
- 8.0
- 8.1

before_script:
- composer install --prefer-dist --dev
23 changes: 9 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,25 @@
{
"name": "vnn/wordpress-rest-api-client",
"config": {
"platform": {
"php": "7.2"
}
},
"autoload": {
"psr-4": {
"Vnn\\WpApiClient\\": "src/"
}
},
"require": {
"php": "^7.0",
"php": "^7.4 || ^8.0",
"psr/http-message": "^1.0"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.4.1",
"guzzlehttp/guzzle": "^6.2",
"phpspec/prophecy": "^1.10.3",
"phpspec/prophecy-phpunit": "^1.1.0",
"phpunit/phpunit": "^8.0",
"squizlabs/php_codesniffer": "^3.6",
"guzzlehttp/guzzle": "^6.5",
"phpspec/prophecy": "^1.17.0",
"phpspec/prophecy-phpunit": "^2.0",
"phpunit/phpunit": "^9.5",
"codeception/assert-throws": "^1.0.3",
"codeception/specify": "^1.0",
"codeception/verify": "^1.3.0"
"codeception/specify": "^2.0.0",
"codeception/verify": "^2.0"
},
"suggest": {
"guzzlehttp/guzzle": "^6.2"
"guzzlehttp/guzzle": "^6.5"
}
}
Loading

0 comments on commit 1baa19d

Please sign in to comment.