Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

🤖 GitHub Action to run symfony console commands.

License

Notifications You must be signed in to change notification settings

nucleos/symfony-console-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symfony Console GitHub Action

Usage

You can use it as a Github Action like this:

# .github/workflows/lint.yml
name: "Lint"

on:
  pull_request:
  push:

jobs:
  merge:
    name: "Lint symfony container"
    
    runs-on: "ubuntu-latest"

    steps:
    - name: "Checkout"
      uses: "actions/checkout@v2"
      
    - name: "Install PHP with extensions"
      uses: "shivammathur/setup-php@v2"
        
    - name: "Install Composer dependencies"
      uses: "ramsey/composer-install@v2"
      
    - name: "Lint"
      uses: "nucleos/[email protected]"
      env:
        kernel: "App\\CustomKernel"
        command: "lint:container"

The kernel environment is optional. The default is App\Kernel.