Using AST Metrics in Github action
You can easily integrate AST Metrics into your CI/CD pipeline.
a Github Action is 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.2
Now every time you push to your repository, AST Metrics will analyze your code.
Reports will be available on the build summary page.