GithubHelp home page GithubHelp logo

autoci's Introduction

Introduction

The purpose of this project is to implement a common CI process, which will perform some operations of the parasitic project itself. The parasitic project is usually a project generated by a project template, which generates a configuration file suitable for the ci process. The project should be suitable for monorepo, and diverse development languages. Action will analyze the user's Git Commit, and then publish the corresponding module according to the regulations. The specific regulations are as follows:

  • Branch naming rules: <workspace>@@<branch name>
  • commit follows the form of "<commit type>: <workspace>@@<commit content>
  • Commit type has "init", "feat", "fix", "breaking change"
  • workspace is the module to be processed
  • If the workplace is not set, the action works for the entire project

Quick Start

name: Node.js Auto Publish

on:
  push

jobs:
  ci:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: auto-ci
        uses: wangziling100/[email protected]
        with:
          configPath: .github/autoci.config.json
          #modulesDir: packages
  publish:
    runs-on: ubuntu-latest
    needs: ci
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v1
        with:
          node-version: 12
          #always-auth: true
          #registry-url: https://registry.npmjs.org/
      - uses: wangziling100/[email protected]
        with:
          scope: '@wangziling100'
          strict_error: false
        env:
          NPM_TOKEN: ${{secrets.NPM_TOKEN}}
          #GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

configPath is required

Parameter Descriptions

  • configPath: Path to your config file
  • modulesDir: Root Directory of your modules

Config file template is here

Example

More examples see here

autoci's People

Contributors

dependabot[bot] avatar wangziling100 avatar

Watchers

 avatar  avatar

autoci's Issues

Process Design

{"priority":0,"duration":0,"target":"","difficulty":"2","urgency":0,"endDate":"2020-08-15","period":0,"planType":0,"itemId":"0.5151910673217027","version":"2020-08-10T15:48:24.253Z","parents":"0.017611709168931178","layer":1,"completeness":0,"allowPriorityChange":false,"contributor":null,"evaluation":null,"owner":null,"startTime":null,"url":"https://github.com/wangziling100/AutoCI/issues/4","tag":"#!1","itemStatus":"completed","labels":[],"milestone":1}

The process starts by receiving Git Commit, which analyzes the format of the Commit to determine the project structure, whether it is a monorepo or a single repo. If it is a monorepo, you need to locate the module directory by analyzing Commit. Then confirm whether there is a configuration file, if there is a configuration file, execute the CI process according to the configuration file, otherwise execute the default CI process. The default CI process complies with the NPM standard.

  • Commit analysis
  • Load the configuration file and execute

Comment area for idea 1

Title: AutoCI

https://github.com/wangziling100/AutoCI/milestone/1
The purpose of this project is to implement a common CI process, which will perform some operations of the parasitic project itself. The parasitic project is usually a project generated by a project template, which generates a configuration file suitable for the ci process. The project should be suitable for monorepo, and diverse development languages.

Cannot read property 'split' of undefined

auto-ci

0s
##[error]Cannot read property 'split' of undefined
Run wangziling100/[email protected]
start...
TypeError: Cannot read property 'split' of undefined
    at Object.analyse (/home/runner/work/_actions/wangziling100/AutoCI/v1.0.8/lib/commitAnalyser.js:34:1)
    at run (/home/runner/work/_actions/wangziling100/AutoCI/v1.0.8/index.js:27:1)
    at Object.104 (/home/runner/work/_actions/wangziling100/AutoCI/v1.0.8/index.js:60:1)
    at __webpack_require__ (/webpack/bootstrap:21:1)
    at startup (/webpack/bootstrap:40:1)
    at /webpack/bootstrap:44:1
    at Object.<anonymous> (/home/runner/work/_actions/wangziling100/AutoCI/v1.0.8/dist/index.js:50:10)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32) error message
##[error]Cannot read property 'split' of undefined

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.