Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Latest commit

 

History

History
105 lines (80 loc) · 2.6 KB

File metadata and controls

105 lines (80 loc) · 2.6 KB

GithubAction for Arkitect

This repository is created for run PHPArkitect into Github Actions

⚠️ Migration from v0.x

If you're currently using the old Docker image format:

uses: docker://phparkitect/arkitect-github-actions:0.7.0

Please 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 latest

Benefits 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, *)

Usage

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: check

Configuration Options

Specify PHPArkitect version

You 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: check

Or use version constraints:

        phparkitect-version: '^0.7'   # latest 0.7.x
        phparkitect-version: '*'      # latest stable (default)

Specify PHP version

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: check

Development

How it works

The 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.

Building the docker image locally

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 --version

Release Strategy

Releases 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.