Skip to content
check

GitHub Action

phparkitect-arkitect

0.3.32 Latest version

phparkitect-arkitect

check

phparkitect-arkitect

Use Arkitect via GithubAction

Installation

Copy and paste the following snippet into your .yml file.

              

- name: phparkitect-arkitect

uses: phparkitect/[email protected]

Learn more about this action in phparkitect/arkitect-github-actions

Choose a version

GithubAction for Arkitect

This repository is created for run PHPArkitect into Github Actions

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: docker://phparkitect/arkitect-github-actions
      with:
        args: check

to use a specific php version:

      uses: docker://phparkitect/arkitect-github-actions
+     env:
+       PHP_VERSION: 8.0
      with:
        args: check

Building and pushing the docker image

docker login
docker build -t phparkitect/arkitect-github-actions:latest .
docker push phparkitect/arkitect-github-actions:latest