-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #285 from PluginAndPartners/master
Release 5.2.0
- Loading branch information
Showing
73 changed files
with
10,190 additions
and
11,655 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: PHPUnit | ||
|
||
on: [push] | ||
|
||
jobs: | ||
wordpress-tests: | ||
runs-on: ubuntu-latest | ||
services: | ||
mysql: | ||
image: mysql:latest | ||
env: | ||
MYSQL_DATABASE: wordpress_test | ||
MYSQL_HOST: 127.0.0.1 | ||
MYSQL_USER: wordpress | ||
MYSQL_PASSWORD: p@ssw0rd1 | ||
MYSQL_ROOT_PASSWORD: p@ssw0rd1 | ||
ports: | ||
- 3306:3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
coverage: none | ||
tools: composer, cs2pr | ||
|
||
- name: Get Composer cache directory | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
|
||
- name: Setup cache | ||
uses: pat-s/always-upload-cache@v1.1.4 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
# Use the hash of composer.json as the key for your cache if you do not commit composer.lock. | ||
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-suggest --no-progress | ||
|
||
- name: Install Database | ||
run: bash bin/install-wp-tests.sh wordpress_test root p@ssw0rd1 127.0.0.1 latest true | ||
|
||
- name: Running Unit Test | ||
run: vendor/bin/phpunit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run php:lint | ||
npm run lint | ||
npm run build:js | ||
npm run build:css | ||
npm run pot | ||
git add *.min.js | ||
git add *.min.css | ||
git add *.pot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
vendor | ||
**/*.min.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
.mp-alert-frame { | ||
align-items: center; | ||
display: inline-flex; | ||
justify-content: center; | ||
justify-items: center; | ||
} | ||
|
||
.mp-left-alert { | ||
padding-top: 5px; | ||
} | ||
|
||
.mp-left-alert img { | ||
max-width: 30px; | ||
min-width: 30px; | ||
padding-right: 8px; | ||
} | ||
|
||
.mp-right-alert { | ||
padding-top: 0px; | ||
} | ||
|
||
.mp-saved-cards-notice { | ||
border: 1px solid #ccc !important; | ||
background-color: #449DDD; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
.mp-left-saved-cards { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
padding-right: 10px; | ||
} | ||
|
||
.mp-left-saved-cards img { | ||
max-width: 67px; | ||
min-width: 67px; | ||
padding: 10px 16px 10px 0; | ||
} | ||
|
||
.mp-right-saved-cards { | ||
padding-top: 0px; | ||
display: flex; | ||
border-radius: 5px; | ||
} | ||
|
||
.mp-saved-cards-title { | ||
font-weight: 600; | ||
font-size: 14px; | ||
margin-bottom: 0 !important; | ||
color: #fff; | ||
} | ||
|
||
.mp-saved-cards-subtitle { | ||
font-size: 12px; | ||
margin-top: 0 !important; | ||
color: #fff; | ||
max-width: 65%; | ||
} | ||
|
||
.mp-saved-cards-link { | ||
background-color: #fff; | ||
color: #449DDD;; | ||
border-radius: 4px; | ||
font-weight: 600; | ||
display: inline-block; | ||
padding: 2px 36px 0; | ||
text-align: center; | ||
line-height: 34px; | ||
font-size: 14px; | ||
text-decoration: none; | ||
min-width: 150px; | ||
} | ||
|
||
.mp-saved-cards-link:hover, .mp-saved-cards-link:focus { | ||
background-color: #007eb5; | ||
color: #fff; | ||
} | ||
|
||
@media (max-width: 767.98px) { | ||
.mp-saved-cards-frame { | ||
justify-content: baseline; | ||
} | ||
.mp-left-saved-cards-text { | ||
display: none; | ||
} | ||
.mp-left-saved-cards img { | ||
padding-right: 8px; | ||
padding-top: 0.5em; | ||
} | ||
.mp-right-saved-cards { | ||
width: 100%; | ||
} | ||
.mp-saved-cards-link { | ||
width: 100%; | ||
padding: 2px 28px 0; | ||
} | ||
} | ||
|
||
#saved-cards-notice > button.notice-dismiss::before { | ||
color: white; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.