Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master to Develop Sync #107

Open
wants to merge 113 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
b9f2b2b
Merge pull request #65 from rtCamp/develop
juhi123 Mar 18, 2021
0fc01f2
Add 'login_with_google/client_arguments' filter for Google_Client arg…
pdclark May 11, 2021
ffb2989
Version bump.
pdclark May 11, 2021
5b31928
Set google/apiclient to 2.8.3. See https://packagist.org/packages/goo…
pdclark May 11, 2021
d5778a0
Remove PHP 8 file after composer install.
pdclark May 11, 2021
6fd5b5c
Remove automatic composer update.
pdclark May 11, 2021
91e6fc4
Verify state on round trip
May 14, 2021
5395f20
Hook: Consistency in naming
May 19, 2021
581bc5d
Merge pull request #71 from rtCamp/fix/state-verification
pdclark May 19, 2021
330739f
Version bump.
pdclark May 19, 2021
8bdbdee
Compare expected state with received state
May 21, 2021
9fe2caa
Merge pull request #73 from rtCamp/fix/state-decoding
pdclark May 25, 2021
0a79d7b
Merge branch 'master' of github.com:rtCamp/login-with-google
pdclark May 25, 2021
ca64851
Version bump.
pdclark May 25, 2021
13f8c1a
Revert Login with GitHub state fix.
pdclark May 26, 2021
2055fcd
Minimal structure with no external library
May 31, 2021
7981495
Remove references of github plugin
May 31, 2021
6e2d76c
Tests adjustments and phpcs fixes
May 31, 2021
aa2af7d
Fix:Tets: Login, Client and Shortcode
Jun 1, 2021
80f3d6f
Fix: Tests - Login Class
Jun 1, 2021
1fb175c
Fix: Tests - Plugin Class
Jun 1, 2021
bbc628a
Fix Assets, Settings and shortcode test cases
sabbir1991 Jun 1, 2021
04e73ef
Merge branch 'fix/oauth-class' of github.com:rtCamp/login-with-google…
sabbir1991 Jun 1, 2021
b2b7ec6
Fix GoogleClient test cases
sabbir1991 Jun 1, 2021
c610851
Assets for button
Jun 1, 2021
243df8f
Fix: Tests - Assets
Jun 1, 2021
5a03a28
Update: Readme info
Jun 1, 2021
3235538
Update: Readme info
Jun 1, 2021
e97a7a0
Update: Readme info
Jun 1, 2021
e6893e1
Readme: Unit testing
Jun 1, 2021
4b31c9f
Add Assets
Jun 1, 2021
4895cfb
Update: Registration hook name
Jun 2, 2021
b507091
Added some testcases in login settings and shortcodes
sabbir1991 Jun 2, 2021
8626a0b
Merge branch 'fix/oauth-class' of github.com:rtCamp/login-with-google…
sabbir1991 Jun 2, 2021
a8adfcb
Workflow: Unit testing
Jun 2, 2021
0d9d4af
Update minimum php version support
Jun 2, 2021
f1b650a
Update dependencies
Jun 2, 2021
227b9d1
Update comment
Jun 2, 2021
745029b
Add code coverage driver
Jun 2, 2021
c5db356
Add artifact in GH Action
dhsathiya Jun 3, 2021
a6e3fcd
WP-CLI: Support for config constants
Jun 24, 2021
41aacda
Merge branch 'fix/oauth-class' of https://github.com/rtCamp/login-wit…
Jun 24, 2021
99da76d
Update readme and wp-assets
Jun 29, 2021
7275e2e
Disable fields if constant defined
Jun 29, 2021
941e5be
Fix: Unit tests
Jun 29, 2021
db5d39c
Add action for artifact upload
mrrobot47 Jun 29, 2021
68d5eb7
Fix dirs
mrrobot47 Jun 29, 2021
99ece9b
Add vendor dirs
Jun 29, 2021
c5a0c3b
Fix report path
mrrobot47 Jun 29, 2021
80f72a4
Debug path
mrrobot47 Jun 29, 2021
9955100
Update download path
mrrobot47 Jun 29, 2021
382f07a
Readme: Update minimum requirements
Jun 29, 2021
970fcc7
Add comment in PR with report URL
mrrobot47 Jun 29, 2021
5bf862e
Update ref var
mrrobot47 Jun 29, 2021
39c30c4
Fix URL
mrrobot47 Jun 29, 2021
6ef3641
Update reports repo name
mrrobot47 Jun 29, 2021
d733743
Readme: Info update
Jun 29, 2021
77817b9
Update .pot
Jun 29, 2021
f9f2c7a
Update filter name
Jun 29, 2021
2de5eac
Fix: Tests
Jun 29, 2021
48557c0
Merge pull request #80 from rtCamp/artifact/upload
Jun 29, 2021
b557206
Update authors
Jun 29, 2021
04880a6
Hook: Deprecate wp_google_login_scopes hook with support
Jun 30, 2021
000bac0
Merge pull request #74 from rtCamp/fix/oauth-class
Jul 1, 2021
97536d1
Fix: Redirect issue
Jul 1, 2021
21e3ce0
Doc: Filter rtcamp.google_default_redirect
Jul 1, 2021
0f5e9b9
Merge pull request #81 from rtCamp/fix/post-login-redirect
Jul 1, 2021
07b0e26
One Tap Function for signing-in
Jul 5, 2021
b1092a0
ID Token Verification Implementation
Jul 6, 2021
483c26b
Authentication success for existing users
Jul 6, 2021
7a93107
Version 1.1 & fix shortcode fatal error.
pdclark Jul 6, 2021
cc96c67
Authenticator class for central authentication logic
Jul 7, 2021
24c9f68
Redirect support post-login
Jul 7, 2021
e1ece7a
Fix: Tests
Jul 7, 2021
9e37ecc
Fix: PHPCS Issues
Jul 7, 2021
80203e7
Fix code coverage report URL
mrrobot47 Jul 8, 2021
71c8c36
Option for login/sitewide login
ankitrox Jul 12, 2021
c5da034
Fix: Tests
ankitrox Jul 12, 2021
05312ae
Cache the public key
ankitrox Jul 13, 2021
7053f29
Tests: Authenticator
ankitrox Jul 13, 2021
536b1f7
Add covering methods for tests
ankitrox Jul 14, 2021
0f2cbfa
Tests: Increase coverage for Authenticator
ankitrox Jul 14, 2021
8e92877
Tests: __contruct
ankitrox Jul 14, 2021
706a63e
Tests: Token Verifier Class
ankitrox Jul 14, 2021
ab6c2e2
Tests: Token Verifier Class
ankitrox Jul 14, 2021
47cf893
Tests: Token Verifier Code Coverage
ankitrox Jul 14, 2021
dda1111
Private access trait
ankitrox Jul 14, 2021
14272e0
Toggle field script
ankitrox Jul 14, 2021
92f401d
Label update
ankitrox Jul 14, 2021
b5ef737
Tests: Fix method name for covers annotation
ankitrox Jul 15, 2021
e8f3a52
Improve redability in readme for WP plugin page
ankitrox Jul 15, 2021
5f7de4a
Update: Unit tests info
ankitrox Jul 15, 2021
c1d6051
Fix: Transient expiration time
ankitrox Jul 15, 2021
b73c9d5
Fix: PHPCS
ankitrox Jul 15, 2021
b495dcc
Merge pull request #85 from rtCamp/fix/readme-readability
Jul 15, 2021
8174fde
Enqueue scripts on concerned screens
ankitrox Jul 16, 2021
5654414
Merge pull request #84 from rtCamp/fix/url
mrrobot47 Jul 17, 2021
0938b7e
Asset minification
ankitrox Jul 19, 2021
9e3212f
URL check before redirecting
ankitrox Jul 19, 2021
af3a564
Alert error
ankitrox Jul 19, 2021
cdad015
Merge pull request #83 from rtCamp/feature/one-tap-login
Jul 19, 2021
b6f21c7
Close <div> tag.
pdclark Jul 19, 2021
f6b36d9
Version 1.2.
pdclark Jul 19, 2021
de96284
Provide filter for client arguments
ankitrox Jul 23, 2021
5fd2b9c
Merge pull request #87 from rtCamp/feature/client-args-filter
pdclark Jul 23, 2021
eba1444
Version 1.2.1
pdclark Jul 23, 2021
227c29c
Update Readme.txt file
Oct 29, 2021
18f1ed7
Merge pull request #94 from rtCamp/update/readme.txt-readme.md
pooja-muchandikar Oct 29, 2021
97a714c
Set cookie when login with google shortcode display to bypass page cache
chandrapatel Dec 16, 2021
9c8286f
Version bump.
pdclark Mar 2, 2022
3ff489b
Merge pull request #96 from rtCamp/fix/bypass-page-cache
chandrapatel Mar 24, 2022
4be4f70
Update banner image path
maitreyie-chavan May 11, 2022
c7df792
Master to develop merge for sync
Mukulsingh27 May 20, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 102 additions & 7 deletions .github/workflows/phpunit_on_pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,107 @@
on: pull_request
name: PHPUnit
jobs:
runPHPCSInspection:
name: Run PHPUnit test
unit: #-----------------------------------------------------------------------
name: Unit test / PHP ${{ matrix.php }}
strategy:
fail-fast: false
matrix:
php: ['7.3', '7.4', '8.0']
runs-on: ubuntu-20.04

steps:
- name: Check out source code
uses: actions/checkout@v2

- name: Check existence of composer.json file
id: check_files
uses: andstor/file-existence-action@v1
with:
files: "composer.json, phpunit.xml.dist"

- name: Set up PHP environment
if: steps.check_files.outputs.files_exists == 'true'
uses: shivammathur/setup-php@v2
with:
php-version: '${{ matrix.php }}'
coverage: xdebug
tools: composer,cs2pr

- name: Get Composer cache Directory
if: steps.check_files.outputs.files_exists == 'true'
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Use Composer cache
if: steps.check_files.outputs.files_exists == 'true'
uses: actions/cache@master
with:
path: ${{ steps['composer-cache'].outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install dependencies
if: steps.check_files.outputs.files_exists == 'true'
run: COMPOSER_ROOT_VERSION=dev-master composer install --prefer-dist --no-progress --no-suggest

- name: Setup problem matcher to provide annotations for PHPUnit
if: steps.check_files.outputs.files_exists == 'true'
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Run PHPUnit
if: steps.check_files.outputs.files_exists == 'true'
run: composer update && composer tests:unit

- name: Archive code coverage results
uses: actions/upload-artifact@v2
with:
name: code-coverage-report
path: /tmp/report/html

artifact-upload: #-----------------------------------------------------------------------
name: Push artifact to static site
runs-on: ubuntu-latest
needs: [unit]

steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Run PHPUnit test
uses: docker://rtcamp/action-run-phpunit:v1.0.0
- name: Check out gh-reports repository
uses: actions/checkout@v2
with:
repository: rtCamp/gh-reports.rt.gw
token: ${{ secrets.RTBOT_TOKEN }}

- name: Download artifact
uses: actions/download-artifact@v2
with:
name: code-coverage-report
path: /tmp/report/html

- name: Move report into correct location
run: |
repo=$(echo ${GITHUB_REPOSITORY#rtCamp/})
rm -rf "$repo/$GITHUB_REF"
mkdir -p "$repo/$GITHUB_REF"
rsync -avhP /tmp/report/html/ "$repo/$GITHUB_REF/"

- name: Commit files
run: |
repo=$(echo ${GITHUB_REPOSITORY#rtCamp/})
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add "$repo"
git commit -m "artifcat report build: $GITHUB_REPOSITORY@$GITHUB_SHA"

- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.RTBOT_TOKEN }}
branch: main
repository: rtCamp/gh-reports.rt.gw

- name: Comment URL on PR
uses: unsplash/comment-on-pr@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
msg: "Code coverage report: https://gh-reports.rt.gw/login-with-google/${{ github.ref }}/"
check_for_duplicate_msg: true
1 change: 0 additions & 1 deletion .github/workflows/release_plugin_on_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
- name: WordPress Plugin Deploy
uses: rtCamp/action-wordpress-org-plugin-deploy@master
env:
CUSTOM_COMMAND: composer install --no-dev --optimize-autoloader && composer update
EXCLUDE_LIST: .github .gitignore .eslintignore phpunit.xml phpcs.xml tests README.md
SLUG: login-with-google
ASSETS_DIR: wp-assets
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/vendor/
.idea
node_modules/
.DS_Store
.phpunit.result.cache
Loading