-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 2580c60
Showing
31 changed files
with
39,108 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
set -eo | ||
|
||
TMP_DIR="$GITHUB_WORKSPACE/more-below" | ||
mkdir "$TMP_DIR" | ||
|
||
# If there's no .gitattributes file, write a default one into place | ||
if [ ! -e "$GITHUB_WORKSPACE/.distignore" ]; then | ||
echo "ℹ︎ Creating .distignore file" | ||
|
||
cat > ".distignore" <<-EOL | ||
/.gitattributes | ||
/.gitignore | ||
/.github | ||
/README.md | ||
/.editorconfig | ||
/composer.json | ||
/index.php | ||
EOL | ||
fi; | ||
|
||
echo "➤ Copying files to $TMP_DIR" | ||
|
||
# This will exclude everything in the .gitattributes file with the export-ignore flag | ||
rsync -rc --exclude-from="$GITHUB_WORKSPACE/.distignore" "$GITHUB_WORKSPACE/" "$TMP_DIR/" --delete |
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,39 @@ | ||
.babelrc | ||
.browserslistrc | ||
.deployment | ||
.distignore | ||
.DS_Store | ||
.editorconfig | ||
.eslintignore | ||
.git | ||
.gitattributes | ||
.github | ||
.gitignore | ||
.idea | ||
.Trashes | ||
.php-cs-fixer.dist.php | ||
composer.lock | ||
gulp-tasks | ||
phpunit.xml | ||
.phplint.yml | ||
.vipgoci_phpcs_skip_folders | ||
phpcs.xml | ||
phpdoc.dist.xml | ||
yarn.lock | ||
yarn-error.log | ||
webpack.config.babel.js | ||
/wp-components | ||
/output | ||
/composer.json | ||
/index.php | ||
/README.md | ||
/node_modules | ||
atlassian-ide-plugin.xml | ||
gulpfile.js | ||
gulpfile.babel.js | ||
scss | ||
Thumbs.db | ||
more-below | ||
phpDocumentor.phar | ||
/src | ||
|
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,14 @@ | ||
# This file is for unifying the coding style for different editors and IDEs | ||
# editorconfig.org | ||
|
||
# WordPress Coding Standards | ||
# https://make.wordpress.org/core/handbook/coding-standards/ | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
indent_style = tab |
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 @@ | ||
src |
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,55 @@ | ||
on: | ||
pull_request: | ||
branches-ignore: | ||
# Do not run on auto submitted branches | ||
- '**-phpcbf' | ||
paths: | ||
- '**.php' | ||
|
||
name: WordPress Autofixer | ||
|
||
jobs: | ||
phpcbf-fixer: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
coverage: none | ||
tools: cs2pr | ||
|
||
# Install dependencies and handle caching in one go. | ||
# @link https://github.com/marketplace/actions/install-composer-dependencies | ||
- name: Install Composer dependencies | ||
uses: "ramsey/composer-install@v1" | ||
|
||
# Check the code-style consistency of the PHP files. | ||
- name: Fix PHP code style | ||
id: codestyle | ||
continue-on-error: true | ||
run: ./vendor/squizlabs/php_codesniffer/bin/phpcbf . --standard=${{ github.workspace }}/phpcs.xml | ||
|
||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.GH_BOT_TOKEN }} | ||
commit-message: PHPCBF Auto Fix | ||
committer: Linchpin Bot <[email protected]> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
signoff: false | ||
branch: ${{ github.event.pull_request.head.ref }}-phpcbf | ||
delete-branch: true | ||
title: 'Auto Fix Formatting' | ||
body: | | ||
Update Formatting | ||
labels: | | ||
phpcs | ||
automated pr | ||
milestone: 1 | ||
draft: false |
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,21 @@ | ||
on: | ||
pull_request: | ||
|
||
name: WordPress Coding Standards Inspections | ||
|
||
jobs: | ||
runPHPCSInspection: | ||
name: Run PHPCS inspection | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Run PHPCS inspection | ||
uses: rtCamp/[email protected] | ||
env: | ||
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }} | ||
SKIP_FOLDERS: ".deployment,.github,assets,css,js,lib,sourcedata,wsdl,vendor" | ||
PHPCS_STANDARD_FILE_NAME: "phpcs.xml" | ||
with: | ||
args: "WordPress,WordPress-Core,WordPress-Extra" |
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,29 @@ | ||
on: | ||
pull_request: | ||
paths: | ||
- '**.php' | ||
|
||
name: PHP Lint | ||
|
||
jobs: | ||
phpcbf-fixer: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
coverage: none | ||
tools: cs2pr | ||
|
||
# Install dependencies and handle caching in one go. | ||
# @link https://github.com/marketplace/actions/install-composer-dependencies | ||
- name: Install Composer dependencies | ||
uses: "ramsey/composer-install@v1" | ||
|
||
- name: PHP Lint | ||
uses: michaelw90/PHP-Lint@master |
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,65 @@ | ||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
name: Create Release | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Get Version | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/} | ||
|
||
- name: Get Changelog Entry | ||
id: changelog_reader | ||
uses: mindsers/changelog-reader-action@v2 | ||
with: | ||
validation_depth: 10 | ||
version: ${{ steps.tag_name.outputs.VERSION }} | ||
path: ./CHANGELOG.md | ||
|
||
- name: Build Blocks Plugin UI | ||
run: | | ||
npm install | ||
npm run build | ||
- name: Clean Build Files/Folders | ||
run : | | ||
chmod +x ./.deployment/cleanup.sh | ||
sh ./.deployment/cleanup.sh; | ||
- name: Create Sync Zip | ||
run: | | ||
zip -r more-below.zip ./more-below | ||
zip -r more-below-${{ steps.get_version.outputs.VERSION }}.zip ./more-below | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
body: | | ||
${{ steps.changelog_reader.outputs.changes }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
asset_path: ./more-below.zip | ||
asset_name: more-below.zip | ||
asset_content_type: application/zip |
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,32 @@ | ||
node_modules | ||
bower_components | ||
release | ||
vendor | ||
.idea | ||
*.log | ||
|
||
# Project Files | ||
dist | ||
|
||
# Editors | ||
*.esproj | ||
*.tmproj | ||
*.tmproject | ||
tmtags | ||
.*.sw[a-z] | ||
*.un~ | ||
Session.vim | ||
*.swp | ||
|
||
# Mac OSX | ||
.DS_Store | ||
._* | ||
.Spotlight-V100 | ||
.Trashes | ||
|
||
# Windows | ||
Thumbs.db | ||
Desktop.ini | ||
/wp-content/ | ||
output | ||
phpDocumentor.phar |
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,12 @@ | ||
<?php | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in( __DIR__ ); | ||
|
||
$config = new PhpCsFixer\Config(); | ||
|
||
return $config->setRules( [ | ||
'WordPress-Extra' => true, | ||
'strict_param' => true, | ||
'array_syntax' => [ 'syntax' => 'short' ], | ||
] )->setFinder( $finder ); |
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,8 @@ | ||
path: ./ | ||
jobs: 10 | ||
cache: build/phplint.cache | ||
extensions: | ||
- php | ||
exclude: | ||
- vendor | ||
warning: true |
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,5 @@ | ||
node_modules | ||
vendor | ||
.github | ||
.deployment | ||
assets |
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,10 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [0.1.0] - 01-17-2022 | ||
|
||
### Added | ||
- chore: Initial commit |
Oops, something went wrong.