Skip to content

fix(lint): errors

fix(lint): errors #6

name: Check PHP V2

Check failure on line 1 in .github/workflows/reusable-php-checks-v2.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/reusable-php-checks-v2.yaml

Invalid workflow file

(Line: 14, Col: 24): Unrecognized named-value: 'inputs'. Located at position 1 within expression: inputs.working-directory
on:
workflow_call:
inputs:
working-directory:
required: false
default: packages/core-v2
type: string
defaults:
run:
shell: bash
working-directory: ${{ inputs.working-directory }}
jobs:
security:
name: Security
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set Git To Use LF
shell: bash
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: rees46/workflow/.github/actions/php/prepare@master
- name: Composer Audit
run: composer audit
- name: Security Advisories
run: composer require --dev roave/security-advisories:dev-latest
phpstan:
name: Linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set Git To Use LF
shell: bash
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: rees46/workflow/.github/actions/php/prepare@master
- name: Static Analysis
run: composer linter:check -- --error-format=github --ansi
php-cs-fixer:
name: Code Style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set Git To Use LF
shell: bash
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: rees46/workflow/.github/actions/php/prepare@master
- name: Check Code Style
run: composer phpcs:check
tests:
name: Tests
runs-on: ubuntu-latest
services:
rabbit:
image: rabbitmq:management-alpine
env:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
ports:
- 5672:5672
postgres:
image: ghcr.io/rees46/postgres-migrated:latest
ports:
- 5432:5432
credentials:
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ github.repository_owner }}
steps:
- uses: actions/checkout@v5
- name: Set Git To Use LF
shell: bash
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: rees46/workflow/.github/actions/php/prepare@master
- name: Symfony Container Tests
run: composer test:container
- name: Unit Tests
run: composer test:unit
- name: Integration Tests
run: composer test:integration
- name: Functional Tests
run: composer test:feature