Skip to content

Latest commit

Β 

History

History
105 lines (82 loc) Β· 2.15 KB

File metadata and controls

105 lines (82 loc) Β· 2.15 KB

EasyP GitHub Actions

Official GitHub Actions for EasyP β€” a linter and toolkit for Protocol Buffers.

Available Actions

Action Description
lint Run EasyP linter on protobuf files
breaking Detect breaking changes in protobuf files

Quick Start

Linting

name: easyp-lint
on: [push, pull_request]

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: easyp-tech/actions/lint@v1
        with:
          version: v0.12.2

Breaking Change Detection

name: easyp-breaking
on: [pull_request]

jobs:
  breaking:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - uses: easyp-tech/actions/breaking@v1
        with:
          version: v0.12.2
          against: origin/main

Combined Workflow

name: easyp
on:
  push:
    branches: [main, master]
  pull_request:

permissions:
  contents: read

jobs:
  lint:
    name: Lint
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: easyp-tech/actions/lint@v1
        with:
          version: v0.12.2

  breaking:
    name: Breaking Changes
    runs-on: ubuntu-latest
    if: github.event_name == 'pull_request'
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - uses: easyp-tech/actions/breaking@v1
        with:
          version: v0.12.2
          against: origin/main

Documentation

Features

  • πŸš€ Fast β€” uses pre-built Docker images, no compilation needed
  • πŸ“ GitHub Annotations β€” errors appear directly on PR lines
  • πŸ”§ Configurable β€” supports custom config files
  • 🏷️ Version Pinning β€” pin to specific EasyP versions

Requirements

  • GitHub-hosted runners (Linux)
  • Docker support

License

MIT