Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 868 Bytes

README.md

File metadata and controls

50 lines (38 loc) · 868 Bytes

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