GitHub Action
AST Metrics analysis
v1.0.5
Latest version
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.
On each build, you will get something like this:
You will find live example here (if the build is still available).
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
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'
MIT. See LICENSE for more details.