Sign inSign up

hero/pronto-action

By hero

•Updated almost 6 years ago

Moved. see https://github.com/HeRoMo/pronto-action/pkgs/container/pronto-action

Image
0

50K+

hero/pronto-action repository overview

⁠Pronto Action

A Github action to run pronto⁠.

⁠Support Pronto runners

This action support the following pronto runners.

⁠Suport Rubocop extentions

This action support the following rubocop extentions.

⁠Usage

Create Github workflow definition yaml file in .github/workflows directory of your repository.

⁠Input parameters

This action can be configured by the following input parameters.

namerequiredefaultdescription
github_tokentrue--
commitfalseorigin/masterCommit for the diff.
runnerfalserubocopRun only the passed runners.
formattersfalsegithub_status github_prPick output formatters.
pathfalse'.'Relative path to check.

see Pronto usage⁠.

⁠Github workflow definition samples

⁠For running rubocop runner

The followoing yaml is a simplest workflow difinition of using pronto-action.

name: Pronto
on:
  pull_request:
    types: [opened, synchronize]
jobs:
  pronto:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: HeRoMo/[email protected]
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          commit: origin/main
⁠For running eslint_npm runner

By using eslint_npm runner, you can check your code by eslint. To use eslint_npm, setup Node.js and run yarn install(or npm install) before using pronto-action.

The following yaml define a workflow use eslint_npm.

name: Pronto
on:
  pull_request:
    types: [opened, synchronize]
jobs:
  eslint_npm:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: Setup Node.js
        uses: actions/setup-node@v1
        with:
          node-version: '12.18.x'
      - name: yarn install
        run: yarn install
      - name: pronto run
        uses: HeRoMo/[email protected]
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          runner: eslint_npm

If does not work successfully, configure elint_npm with .pronto_eslint_npm.yml file. see Configuration of ESLintNPM⁠

⁠LICENSE

MIT⁠

Tag summary

Content type

Image

Digest

Size

108 MB

Last updated

almost 6 years ago

docker pull hero/pronto-action