Skip to content

Github action to analyse your repositories using the code observability analyzer

License

Notifications You must be signed in to change notification settings

codeobservability/analyzer-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Observability Analyzer for Github Actions

This is a GitHub Action to check your teams norms and analyze your code to get important metrics. This action only works with the pull_request trigger.

Usage

Step 1: Set up Your workflow.yml File

  • Add checkout to your workflow:

For Code Observability Analyzer to run, check out your repository using actions/checkout@v3. You will need to set fetch-depth: 0 to fetch all history for all branches and tags. For example:

- name: Checkout repository
  uses: actions/checkout@v3
  with:
    fetch-depth: 0 # This is a required field for Code Observability Analyzer

Step 2: Add Code Observability Analyzer Action

- uses: codeobservability/analyzer-action@master
  with:
    co_repo_key: ${{ secrets.CO_REPO_KEY }}

After your job is completed, you can view your results on Code Observability.

Example:

on: [pull_request]

jobs:
  analyze_code_job:
    runs-on: ubuntu-latest
    name: Analyze your code with Code Observability
    steps:
    - uses: actions/checkout@v3
      with:
        fetch-depth: 0
    - name: Code Observability Analyser
      uses: codeobservability/analyzer-action@master
      with:
        co_repo_key: ${{ secrets.CO_REPO_KEY }}

License

This library is licensed under the Apache-2.0 License. See the LICENSE file.

About

Github action to analyse your repositories using the code observability analyzer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published