Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/halleck45/action-ast-metrics

Github action for AST Metrics
https://github.com/halleck45/action-ast-metrics

Last synced: 25 days ago
JSON representation

Github action for AST Metrics

Awesome Lists containing this project

README

        

# ast-action

> Github action for [AST Metrics](https://github.com/Halleck45/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](./docs/preview.png)

You will find [live example here](https://github.com/Halleck45/DesignPatternDetector/actions/runs/8293499298) (if the build is still available).

## Usage

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

```yaml
name: AST Metrics
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: AST Metrics
uses: halleck45/[email protected]
```

## Inputs

+ `version`: The version of AST Metrics to use. Default: `latest`

```yaml
- uses: halleck45/[email protected]
with:
version: 'v0.0.0-alpha'
```

+ `directory`: The directory to analyze. Default: `.`

```yaml
- uses: halleck45/[email protected]
with:
directory: 'src'
```

## License

MIT. See [LICENSE](LICENSE) for more details.