Skip to content

GitHub Action for CI/CD integration #22

Description

@AveryClapp

Feature Description

GitHub Action that runs cache analysis on pull requests and comments with results.

Workflow

name: Cache Analysis
on: pull_request

jobs:
  analyze:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: cache-explorer/action@v1
        with:
          files: 'src/**/*.c'
          config: 'intel'
      - uses: cache-explorer/comment@v1  # Post results as PR comment

PR Comment

🔍 Cache Analysis Results

**Before**: 85.2% L1 hit rate
**After**: 92.3% L1 hit rate
✅ +7.1% improvement

[View full report](https://cache-explorer.io/a/abc123)

Implementation

  • Docker action (faster than JS action)
  • Parse git diff to find changed files
  • Run analysis on affected code
  • Compare with base branch
  • Post comment via GitHub API
  • Status check (fail if regression)

Files

  • .github/actions/cache-explorer/ (new)
  • action.yml

Publishing

  • GitHub Marketplace

References

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions