Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
skip-forward

GitHub Action

Run a Phing Build

v1.1

Run a Phing Build

skip-forward

Run a Phing Build

Run your Phing Build in your GiTHub Action

Installation

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

              

- name: Run a Phing Build

uses: phingofficial/[email protected]

Learn more about this action in phingofficial/phing-github-action

Choose a version

Phing GITHub Action

Run your Phing Build in your Github Actions.

PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant. You can do anything with it that you could do with a traditional build system like GNU make, and its use of simple XML build files and extensible PHP "task" classes make it an easy-to-use and highly flexible build framework.

Configuration

Create your Github Workflow config in .github/workflows/build.yml or similar to run your build against build.xml

name: CI

on: [push]

jobs:
  build-test:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - name: Phing Build
        uses: phingofficial/phing-github-action@v1

To execute a build with custom/path/to/build.xml as a phing build file use:

name: CI

on: [push]

jobs:
  build-test:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - name: Phing Build
        uses: phingofficial/phing-github-action@v1
        with:
            buildfile: custom/path/to/build.xml

Run targets:

name: CI

on: [push]

jobs:
  build-test:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - name: Phing Build
        uses: phingofficial/phing-github-action@main
        with:
            targets: build deploy

Phing in Action

Example "Phing Build" Project