Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 2.1 KB

README.md

File metadata and controls

47 lines (37 loc) · 2.1 KB

Syde Reusable Workflows

Introduction to GitHub Actions

With GitHub Actions, you can create custom workflows for the software development lifecycle directly in your GitHub repository. These workflows consist of different tasks, called actions, that can be executed automatically when certain events occur.

At Syde, we use GitHub Actions for a wide range of tasks. From various quality assurance tests (e.g. static analysis checks, PHPUnit tests, etc.), to asset (pre)compilation with Composer Asset Compiler, release generation, deployments (CI/CD), and container registry management: all automatable, recurring tasks are performed in GitHub Actions.

About reusable workflows

To avoid code duplication of GitHub Actions workflow files across thousands of repositories, we utilize reusable workflows. This allows us to DRY (don't repeat yourself) configurations so we don't have to copy and paste workflows from one repository to another.

Calling reusable workflows

In the calling workflow file, use the uses property to specify the location and version of a reusable workflow file to run as a job.

name: {Job name}
on:
  pull_request:
jobs:
  {topic}-{workflow}:
    uses: inpsyde/reusable-workflows/.github/workflows/{topic}-{workflow}.yml@main

Please note that the individual workflows have different (optional) parameters that you can pass either as inputs or secrets. To learn more, consult the documentation of the individual workflow groups here: