This repository is created for run PHPArkitect into Github Actions
If you're currently using the old Docker image format:
uses: docker://phparkitect/arkitect-github-actions:0.7.0Please update to the new format for better flexibility and automatic updates:
uses: phparkitect/arkitect-github-actions@main
with:
phparkitect-version: '0.7.0' # optional, defaults to latestBenefits of migrating:
- Choose any PHPArkitect version without waiting for action releases
- Get automatic updates when using default version
- Support for version constraints (e.g.,
^0.7,*)
You can use it as a Github Action like this:
# .github/workflows/test.yml
on:
push:
branches:
- master
pull_request:
name: Test
jobs:
phparkitect:
name: PHPArkitect
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
- name: PHPArkitect
uses: phparkitect/arkitect-github-actions@main
with:
args: checkYou can specify which version of PHPArkitect to use:
- name: PHPArkitect
uses: phparkitect/arkitect-github-actions@main
with:
phparkitect-version: '0.7.0' # specific version
args: checkOr use version constraints:
phparkitect-version: '^0.7' # latest 0.7.x
phparkitect-version: '*' # latest stable (default)To use a specific PHP version for platform requirements check:
- name: PHPArkitect
uses: phparkitect/arkitect-github-actions@main
env:
PHP_VERSION: 8.0
with:
args: checkThe GitHub Action now builds the Docker image locally for each workflow run. This allows users to specify which version of PHPArkitect they want to use without requiring a new release of this action for every PHPArkitect update.
If you want to build and test the image locally:
docker build -t phparkitect/arkitect-github-actions:latest .
docker run --rm phparkitect/arkitect-github-actions:latest --versionReleases of this GitHub Action are only needed when:
- The action configuration changes (action.yml)
- The entrypoint script changes (entrypoint.sh)
- The Dockerfile structure changes
- New features are added to the action itself
No release is needed for PHPArkitect version updates, as users can specify their desired version via the phparkitect-version input.