Skip to content

Commit

Permalink
Merge pull request #6 from bowphp/feature
Browse files Browse the repository at this point in the history
Update github action config
  • Loading branch information
papac authored May 11, 2023
2 parents 5e9a50e + eba4fab commit b8fbfca
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: fix code styling

on:
workflow_call:
inputs:
php:
default: "8.1"
type: string
message:
default: Fix code styling
type: string
fix:
default: true
type: boolean

jobs:
lint:
runs-on: ubuntu-latest

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ inputs.php }}
extensions: json, dom, curl, libxml, mbstring
coverage: none

- name: Install PHP CS
run: composer global require squizlabs/php_codesniffer

- name: Run Phpcbf
run: phpcbf --standard=psr11 --tab-width=4 --severity=4

- name: Commit linted files
if: ${{ inputs.fix }}
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: ${{ inputs.message }}
12 changes: 12 additions & 0 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: issues

on:
issues:
types: [labeled]

permissions:
issues: write

jobs:
help-wanted:
uses: bowphp/.github/.github/workflows/issues.yml@main
12 changes: 12 additions & 0 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: pull requests

on:
pull_request_target:
types: [opened]

permissions:
pull-requests: write

jobs:
uneditable:
uses: bowphp/.github/.github/workflows/pull-requests.yml@main
File renamed without changes.
9 changes: 9 additions & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: update changelog

on:
release:
types: [released]

jobs:
update:
uses: bowphp/.github/.github/workflows/update-changelog.yml@main
File renamed without changes.

0 comments on commit b8fbfca

Please sign in to comment.