goyek / workflow

Customizable goyek workflow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

goyek reusable workflow

Go Reference go.mod LICENSE Build Status Go Report Card

Star this repository if you find it valuable and worth maintaining.

Description

workflow is an example of a reusable, yet customizable, goyek workflow that could be used to share common build pipeline code.

It defines reusable tasks, stages and configures the goyek.DefaultFlow to use common flags, middlewares, printing.

You can find example usage (and customization) in https://github.com/goyek/demo.

Build Pipeline

The default all build pipeline consists of following stages:

  • init
  • build
  • test

Stages

The init stage consists of following tasks:

  • go-tidy
  • go-generate

The build stage consists of following tasks:

  • go-build

The test stage consists of following tasks:

  • go-vet
  • go-test

Additional Tasks

clean tasks is used to clean the workspace from files created during build pipeline.

git-diff is used to detect if there were changes (e.g. done by go generate) that were not commited.

About

Customizable goyek workflow

License:MIT License


Languages

Language:Go 95.9%Language:Shell 3.0%Language:PowerShell 1.2%