Skip to content

Commit

Permalink
Action cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsilverstein committed Oct 30, 2023
1 parent d3246a3 commit ca9b655
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions .github/workflows/plugin-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ on:
- trunk
- 'release/**'


jobs:
build-and-test-plugin:
name: 'Build plugin and run plugin checks'
prepare:
name: "Prepare the artifact"
# Don't run on forks.
if: github.repository_owner == 'Yoast'

runs-on: ubuntu-latest

steps:
- name: Checkout code
- name: Checkout code
uses: actions/checkout@v3

- name: Install PHP
Expand All @@ -30,13 +34,22 @@ jobs:
node-version: '14'
cache: 'yarn'

- name: Build
run: |
composer install
yarn
grunt build
- name: "Debug info: show tooling versions"
run: |
php -v
node --version
npm --version
yarn --version
grunt --version
git --version
- name: Run plugin check
uses: swissspidy/wp-plugin-check-action@main
with:
build-dir: 'build'
- name: Build
run: |
composer install
yarn
grunt build
- name: Run plugin check
uses: swissspidy/wp-plugin-check-action@main
with:
build-dir: 'build'

0 comments on commit ca9b655

Please sign in to comment.