Coder Social home page Coder Social logo

maghic's Introduction

Maghic

Maghic

Maghic is a Swiss army knife tool for GitHub Actions Workflow.

This project is a W.I.P. for "2021 GitHub Actions Hackathon on DEV". It is not yet completed and it is under development as side project.

It provides:

  • a command line tool for managing, creating and autogenerate Yaml file Workflow for GitHub Actions;
  • a set of classes and methods for managing Yaml file (specific for GitHub Actions Workflows).

This is created for the GitHub Actions Hackathon: 2021 GitHub Actions Hackathon on DEV

Auto generate workflows

If you want to create automatically a GitHub Actions workflow file you can execute "maghic yaml:guess" command. If you want to save the file, you need to use --save option. Amandatory argument is the directory of the project that needs a workflow file. If you want to enable a MySql service, you need to use --mysql option.

./maghic yaml:guess --mysql --save .

If you want to show the workflow file, you can use --show option:

./maghic yaml:guess --show .

The yaml:guess command will inspect your project detecting some characteristics to guess the workflow:

  • a dependencies file like composer.json (for PHP), packages.json (for Node/JS) etc.;
  • the dependencies: if there are some relevant dependencies like testing tool, static code analysis or code sniffer;
  • .nvmrc to identify the right version of Node in the pipeline
  • ...

Maghic screenshot

References

Packages

Code quality packages

  • PestPHP: a testing framework for PHP;
  • PHPStan: a static code analysis tool for PHP;
  • PHP_CodeSniffer: detects violations of a defined set of coding standards (for example PSR2 and PSR12).

maghic's People

Contributors

roberto-butti avatar

Stargazers

Calvin Jackson avatar Andrei Luca avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.