Skip to content

Fix CI: docker-compose command not found in GitHub Actions #668

@jjroelofs

Description

@jjroelofs

Summary

The drupal-lint CI job fails because docker-compose (v1) command is not available on GitHub Actions runners. Modern GitHub Actions runners only have docker compose (v2 plugin) installed.

Steps to reproduce

  1. Create a PR to dxpr_theme
  2. CI runs the drupal-lint job
  3. Job fails with: docker-compose: command not found

What is the current bug behavior?

The workflow uses docker-compose run --rm drupal-lint which fails because docker-compose (v1, standalone binary) is not installed on ubuntu-latest runners.

What is the expected correct behavior?

CI should run successfully using docker compose (v2 plugin syntax, without hyphen).

Possible fixes

Update .github/workflows/review.yaml:

  • Change docker-compose to docker compose
  • Update actions/checkout@v2 to actions/checkout@v4

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.xbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions