This repository is created for run PHPArkitect into Github Actions
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
docker login
docker build -t phparkitect/arkitect-github-actions:latest .
docker push phparkitect/arkitect-github-actions:latest