Skip to content
bar-chart

GitHub Action

AST Metrics analysis

v1.0.5 Latest version

AST Metrics analysis

bar-chart

AST Metrics analysis

Runs AST Metrics analysis on your project

Installation

Copy and paste the following snippet into your .yml file.

              

- name: AST Metrics analysis

uses: Halleck45/action-ast-metrics@v1.0.5

Learn more about this action in Halleck45/action-ast-metrics

Choose a version

ast-action

Github action for AST Metrics

This will automatically add a markdown report to your build, containing metrics about your project (e.g. maintainability, complexity, etc.)

An artifact will also be created, containing the detailed HTML report.

Example

On each build, you will get something like this:

Example

You will find live example here (if the build is still available).

Usage

Create a .github/workflows/ast-metrics.yml file with the following content:

name: AST Metrics
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
        - name: AST Metrics
          uses: halleck45/action-ast-metrics@v1.0.3

Inputs

  • version: The version of AST Metrics to use. Default: latest
- uses: halleck45/action-ast-metrics@v1.0.3
  with:
    version: 'v0.0.0-alpha'
  • directory: The directory to analyze. Default: .
- uses: halleck45/action-ast-metrics@v1.0.3
  with:
    directory: 'src'

License

MIT. See LICENSE for more details.