Analyze dependencies and verify that no unknown symbols are used in the sources of a package
10K+
composer-require-checkerThis repo contains a Dockerfile to build https://github.com/maglnet/ComposerRequireChecker/ from scratch. Docker images are also available on the Hub at https://hub.docker.com/r/webfactory/composer-require-checker/tags.
You can run it as a GitHub Action like so:
# .github/workflows/check.yml
on: [push, pull_request]
name: Main
jobs:
composer-require-checker:
name: ComposerRequireChecker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: ComposerRequireChecker
uses: docker://webfactory/composer-require-checker:3.2.0
This configuration will use the pre-built image at the Docker Hub. If you
feel more secure with building the Docker Image ad-hoc from the Dockerfile
in this repo, use the following syntax instead.
# .github/workflows/check.yml
on: [push, pull_request]
name: Main
jobs:
composer-require-checker:
name: ComposerRequireChecker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: ComposerRequireChecker
- uses: docker://webfactory/composer-require-checker:3.2.0
+ uses: webfactory/[email protected]
Note: When using the Docker image, the tag refers to the Docker image tag. When referring to this repo, use a tag or commit hash for the Dockerfile.
Note: This will build the Docker image every time your workflow is run.
The build will currently use the 3.2.0 release tag of ComposerRequireChecker,
which is the latest version as of writing.
In either case, to pass a custom config file, add this:
# .github/workflows/check.yml
on: [push]
name: Main
jobs:
composer-require-checker:
name: ComposerRequireChecker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: ComposerRequireChecker
uses: docker://webfactory/composer-require-checker:3.2.0
+ with:
+ args: --config-file=composer-require-checker.js
Apart from GitHub Actions, you can run the Docker image in any given directory:
docker run --rm -it -v ${PWD}:/app webfactory/composer-require-checker:3.2.0
This action was written by webfactory GmbH, Bonn, Germany. We're a software development agency with a focus on PHP (mostly Symfony). If you're a developer looking for new challenges, we'd like to hear from you!
Copyright 2019 – 2021 webfactory GmbH, Bonn. Code released under the MIT license.
Content type
Image
Digest
Size
155.2 MB
Last updated
over 5 years ago
docker pull webfactory/composer-require-checker