Skip to content

Commit

Permalink
add validate plugin version action (#85)
Browse files Browse the repository at this point in the history
* add validate plugin version action

* use current draft branch

* update checkout version

* update action version

* add write permissions for the github bot

* use version that allows user-defined filenames

* move the action from the lint-test into a standalone workflow
  • Loading branch information
jazzsequence authored Oct 30, 2024
1 parent 930455f commit 9f871cd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
DB_PASSWORD: root
DB_HOST: localhost
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install NPM & Composer dependencies
run: |
composer install
Expand All @@ -39,7 +39,7 @@ jobs:
runs-on: ubuntu-latest
name: WP.org Code Analysis
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: WP.org Code Analysis
uses: pantheon-systems/[email protected]
with:
Expand All @@ -48,7 +48,7 @@ jobs:
runs-on: ubuntu-latest
name: PHP Compatibility
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: echo "Note these tests may be incomplete for newer PHP version and miss some deprecations"
shell: bash
- name: PHPCompatibility
Expand All @@ -61,7 +61,7 @@ jobs:
name: Validate README Spacing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: pantheon-systems/validate-readme-spacing@v1
with:
filepath: 'README.MD'
filepath: 'README.MD'
19 changes: 19 additions & 0 deletions .github/workflows/validate-plugin-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Validate Tested Up To Version
on:
schedule:
- cron: '0 0 * * 0'

permissions:
pull-requests: write
contents: write

jobs:
validate-plugin-version:
runs-on: ubuntu-latest
name: Validate Plugin Version
steps:
- uses: actions/checkout@v4
- uses: jazzsequence/action-validate-plugin-version@v1
with:
filenames: 'readme.txt,README.MD'
branch: 'release'

0 comments on commit 9f871cd

Please sign in to comment.