Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 5 additions & 1 deletion .github/workflows/phpunit_on_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ jobs:
if: steps.check_files.outputs.files_exists == 'true'
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Update composer packages
if: steps.check_files.outputs.files_exists == 'true'
run: composer update

- name: Run PHPUnit
if: steps.check_files.outputs.files_exists == 'true'
run: composer update && composer tests:unit
run: vendor/bin/phpunit tests/php/Unit/ --verbose

- name: Archive code coverage results
uses: actions/upload-artifact@v2
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/wordpress-version-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "WordPress version checker"
on:
push:
branches:
- develop
- trunk
pull_request:
branches:
- develop
schedule:
- cron: '0 0 * * 1'

permissions:
issues: write

jobs:
wordpress-version-checker:
runs-on: ubuntu-latest
steps:
- name: WordPress version checker
uses: skaut/wordpress-version-checker@master
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
node_modules/
.DS_Store
.phpunit.result.cache

# Configs
/phpcs.xml
4 changes: 4 additions & 0 deletions .wordpress-version-checker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"readme": "readme.txt",
"channel": "rc"
}
27 changes: 17 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,23 @@

> WordPress plugin to login/register with google

1. [Overview](#overview)
2. [Installation](#installation)
3. [Usage Instructions](#usage-instructions)

[Plugin Constants](#plugin-constants)
[Hooks](#hooks)

4. [Shortcode](#shortcode)
5. [Minimum Requirements](#minimum-requirements)
6. [License](#license)
- [Login with Google](#login-with-google)
- [Overview](#overview)
- [Installation](#installation)
- [Browser support](#browser-support)
- [Usage Instructions](#usage-instructions)
- [Plugin Constants](#plugin-constants)
- [Hooks](#hooks)
- [Filters](#filters)
- [Actions](#actions)
- [Shortcode](#shortcode)
- [Contribute](#contribute)
- [Reporting a bug 🐞](#reporting-a-bug-)
- [Creating a pull request](#creating-a-pull-request)
- [Unit testing](#unit-testing)
- [Minimum Requirements](#minimum-requirements)
- [License](#license)
- [BTW, We're Hiring!](#btw-were-hiring)

## Overview

Expand Down
117 changes: 52 additions & 65 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,67 +1,54 @@
{
"name": "rtcamp/login-with-google",
"description": "WordPress plugin to let users login with google.",
"license": "GPL 2.0",
"authors": [
{
"name": "rtCamp",
"email": "[email protected]",
"homepage": "https://rtcamp.com/",
"role": "Developer"
},
{
"name": "Utkarsh Patel",
"email": "[email protected]"
},
{
"name": "Paul Clark",
"role": "Developer"
},
{
"name": "Ankit Gade",
"email": "[email protected]",
"homepage": "https://iamank.it/",
"role": "Developer"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=7.1",
"pimple/pimple": "3.3.*"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.7.1",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
"wp-coding-standards/wpcs": "^2.3",
"sirbrillig/phpcs-variable-analysis": "^v2.11.3",
"automattic/vipwpcs": "^2.3.3",
"phpcompatibility/phpcompatibility-wp": "^2.1.3",
"phpunit/phpunit": "9.5",
"10up/wp_mock": "0.4.2"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"autoload": {
"psr-4": {
"RtCamp\\GoogleLogin\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"RtCamp\\GoogleLogin\\Tests\\": "tests/php"
}
},
"scripts": {
"cs": "@php ./vendor/bin/phpcs",
"cs:fix": "@php ./vendor/bin/phpcbf",
"tests:unit": "@php ./vendor/bin/phpunit tests/php/Unit/",
"qa": [
"@cs",
"@tests"
]
}
"name": "rtcamp/login-with-google",
"description": "WordPress plugin to let users login with google.",
"license": "GPL-2.0-or-later",
"type": "wordpress-plugin",
"homepage": "https://github.com/rtCamp/login-with-google",
"require": {
"php": ">=7.1",
"pimple/pimple": "3.3.*"
},
"require-dev": {
"10up/wp_mock": "^0.4.2",
"automattic/vipwpcs": "^2.3",
"civicrm/composer-downloads-plugin": "^3.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
"php-stubs/wordpress-stubs": "^6.0",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"phpunit/phpunit": "^9.5",
"roave/security-advisories": "dev-latest",
"sirbrillig/phpcs-variable-analysis": "^2.11",
"wp-coding-standards/wpcs": "^2.3"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"RtCamp\\GoogleLogin\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"RtCamp\\GoogleLogin\\Tests\\": "tests/php"
}
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"civicrm/composer-downloads-plugin": true
},
"sort-packages": true
},
"extra": {
"downloads": {
"phpstan": {
"path": "vendor/bin/phpstan",
"type": "phar",
"url": "https://github.com/phpstan/phpstan/releases/latest/download/phpstan.phar"
}
}
},
"scripts": {
"analyze": "if [ -z $TEST_SKIP_PHPSTAN ]; then phpstan --version; phpstan analyze --ansi --memory-limit=2G; fi"
}
}
Loading