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

[Try] Plugin check action. #300

Closed
wants to merge 4 commits into from
Closed
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/wp-plugin-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: WP plugin check

on:
push:
branches:
- develop
- trunk
pull_request:
branches:
- develop

jobs:
build:
uses: 10up/autoshare-for-twitter/.github/workflows/build-release-zip.yml@develop

plugin-check:
needs: build
runs-on: ubuntu-latest

steps:
- name: Download build zip
uses: actions/download-artifact@v3
with:
name: ${{ github.event.repository.name }}
path: ${{ github.event.repository.name }}

- name: Run plugin check
uses: swissspidy/wp-plugin-check-action@v1
with:
build-dir: ${{ github.event.repository.name }}
checks: |
i18n_usage
enqueued_scripts_size
code_obfuscation
file_type
plugin_header_text_domain
late_escaping
plugin_updater
plugin_review_phpcs
performant_wp_query_params
enqueued_scripts_in_footer
plugin_readme
enqueued_styles_scope
localhost
no_unfiltered_uploads
trademarks
categories: |
general
plugin_repo
security
performance
accessibility
1 change: 1 addition & 0 deletions autoshare-for-twitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,4 @@ function () {
update_option( 'autoshare_migrate_to_v2_api_notice_dismissed', true );
}
);

Loading