add perms so we can commit #64
Workflow file for this run
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
# On push, run the action-wporg-validator workflow. | |
name: Lint and Test | |
on: [push] | |
permissions: | |
contents: write | |
jobs: | |
validate-readme-spacing: | |
name: Validate README Spacing | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: pantheon-systems/validate-readme-spacing@v1 | |
wporg-validation: | |
name: WP.org Validator | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: WP.org Validator | |
uses: pantheon-systems/action-wporg-validator@1.0.0 | |
with: | |
type: plugin | |
composer-install: | |
name: Composer Install | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Composer Install | |
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 | |
run: | | |
git config --global user.name "Pantheon Robot" | |
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 | |
- name: Lint | |
run: composer lint |