Skip to content

7a6163/rubyfast-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

RubyFast GitHub Action

A GitHub Action for RubyFast — a blazing-fast Ruby performance linter written in Rust.

Usage

- uses: 7a6163/rubyfast-action@v1
  with:
    path: "."

Inputs

Input Description Default
path Path to scan (file or directory) .
version RubyFast version (e.g. 1.0.0) latest
args Additional arguments passed to rubyfast
reviewdog Enable reviewdog inline PR comments false
github-token GitHub token for reviewdog API access ${{ github.token }}
reviewdog-reporter reviewdog reporter github-pr-review
reviewdog-filter-mode reviewdog filter mode added

Outputs

Output Description
exit-code Exit code from rubyfast (0=clean, 1=offenses found)

Example: Basic

name: Lint
on: [push, pull_request]

jobs:
  rubyfast:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: 7a6163/rubyfast-action@v1

Example: With reviewdog

name: Lint
on: [pull_request]

jobs:
  rubyfast:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      checks: write
      pull-requests: write
    steps:
      - uses: actions/checkout@v4
      - uses: 7a6163/rubyfast-action@v1
        with:
          reviewdog: "true"
          github-token: ${{ secrets.GITHUB_TOKEN }}
          reviewdog-reporter: github-pr-review

Example: Scan specific directory

- uses: 7a6163/rubyfast-action@v1
  with:
    path: "app/models"

Example: Pin version

- uses: 7a6163/rubyfast-action@v1
  with:
    version: "1.0.0"

License

MIT

About

GitHub Action for RubyFast — a blazing-fast Ruby performance linter

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors