GitHub Action
ComposerRequireChecker
This repo contains a Dockerfile
to build https://github.com/maglnet/ComposerRequireChecker/ from scratch.
Docker images are also built weekly by a GitHub Actions workflow and are published on
ghcr.io.
You can run a prebuilt image as a GitHub Action as follows:
# .github/workflows/check.yml
on: [push, pull_request]
name: Main
jobs:
composer-require-checker:
name: ComposerRequireChecker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: ComposerRequireChecker
uses: docker://ghcr.io/webfactory/composer-require-checker:4.5.0
Too pass a custom config file, add this:
# .github/workflows/check.yml
on: [push, pull_request]
name: Main
jobs:
composer-require-checker:
name: ComposerRequireChecker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: ComposerRequireChecker
uses: docker://ghcr.io/webfactory/composer-require-checker:4.5.0
+ with:
+ args: --config-file=composer-require-checker.js
If you want to use another version, check which images have been built already.
Apart from GitHub Actions, you can run a published Docker image in any given directory:
docker run --rm -it -v ${PWD}:/app ghcr.io/webfactory/composer-require-checker:4.5.0
Review and/or tweak the Dockerfile
if necessary.
Run
docker build --build-arg VERSION=4.5.0 --tag composer-require-checker .
and be sure to set the build argument VERSION
to a valid version number.
To validate your own image, run
docker run --rm -it composer-require-checker --version
To use your own image, run
docker run --rm -it -v ${PWD}:/app composer-require-checker
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 – 2023 webfactory GmbH, Bonn. Code released under the MIT license.