Skip to content

Commit

Permalink
make it all one action & allow push to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Jul 18, 2024
1 parent a9de097 commit 678ad0e
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,14 @@ jobs:
uses: pantheon-systems/action-wporg-validator@1.0.0
with:
type: plugin
composer-install:
name: Composer Install
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Composer Install
- name: Install Composer dependencies
run: composer install
phpcbf:
name: PHP Code Beautifier
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: PHP Code Beautifier
run: composer phpcbf
- name: Commit changes
Expand All @@ -43,12 +37,6 @@ jobs:
git config --global user.email "bot@getpantheon.io"
git add -A
git commit -m "Apply PHP Code Beautifier changes"
git push
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
git push || true # Allow push to fail if there are no changes.
- name: Lint
run: composer lint

0 comments on commit 678ad0e

Please sign in to comment.