Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 37 additions & 3 deletions .github/workflows/homeboy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ name: Homeboy
on:
pull_request:
branches: [main]
push:
branches: [main]

permissions:
contents: read
pull-requests: write

jobs:
homeboy:
name: Lint, Test & Audit
build:
name: Homeboy Build (Lint & Test)
runs-on: ubuntu-latest
services:
mysql:
Expand Down Expand Up @@ -46,9 +48,41 @@ jobs:
with:
version: 'latest'
extension: wordpress
commands: lint,test,audit
commands: ${{ github.event_name == 'pull_request' && 'lint' || 'lint,test' }}
lint-changed-only: true
test-scope: 'changed'
auto-issue: ${{ github.event_name != 'pull_request' }}
component: data-machine
settings: '{"database_type": "mysql"}'
php-version: '8.2'
node-version: '20'

audit:
name: Homeboy Audit
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: mbstring, intl, pdo_sqlite, mysqli
tools: composer:v2
coverage: none

- name: Install project dependencies
run: composer install --no-interaction --prefer-dist

- uses: Extra-Chill/homeboy-action@v1
with:
version: 'latest'
extension: wordpress
commands: audit
auto-issue: ${{ github.event_name != 'pull_request' }}
component: data-machine
php-version: '8.2'
node-version: '20'
Loading