Create CNAME #5
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
name: Code Style | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
phplint: | |
runs-on: ubuntu-latest | |
name: PHP Lint | |
steps: | |
- uses: actions/checkout@v2 | |
- id: PHP-Lint | |
uses: J3-Tech/[email protected] | |
with: | |
path: . | |
exclude: vendor | |
php-cs-fixer: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Run PHP CS Fixer | |
uses: docker://oskarstark/php-cs-fixer-ga | |
with: | |
args: --config=.php-cs-fixer.dist.php --allow-risky=yes | |
- name: Commit changes | |
uses: stefanzweifel/[email protected] | |
with: | |
commit_message: Fix styling | |
branch: main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install NPM dependencies | |
run: npm ci | |
- name: Run Prettier | |
run: npm run format | |
- name: Commit changes | |
uses: stefanzweifel/[email protected] | |
with: | |
commit_message: Apply Prettier changes | |
branch: main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |