Skip to content

Add additional checks on the CI #1002

@marien-probesys

Description

@marien-probesys

Problem

It may happen that we forget to generate a migration. That would result into a difference between the entities and the database. This shouldn't happen as it could generate weird issues difficult to debug.

Also, it can happen that developers add a file that shouldn't be, like a SQL dump file :)

Solution

Add two checks on the CI:

  • the first must run the console make:migration command and fail if a file is generated.
  • the second must check for the presence of any *.sql, *dump*, or .env* files and fail if it detects one which isn't in a safe list (such as /.env.example for instance)

Related issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions