Official GitHub Action for EasyP linter from its authors.
The action runs EasyP linter and reports issues from protobuf files.
Add a .github/workflows/easyp-lint.yml file with the following contents:
Simple Example
name: easyp-lint
on:
push:
branches:
- main
- master
pull_request:
permissions:
contents: read
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: easyp-lint
uses: easyp-tech/actions/lint@v1
with:
version: v0.12.0With Config File
name: easyp-lint
on:
push:
branches:
- main
- master
pull_request:
permissions:
contents: read
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: easyp-lint
uses: easyp-tech/actions/lint@v1
with:
version: v0.12.0
config: easyp.yamlLint Specific Directory
name: easyp-lint
on:
push:
branches:
- main
- master
pull_request:
permissions:
contents: read
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: easyp-lint
uses: easyp-tech/actions/lint@v1
with:
version: v0.12.0
directory: protoMultiple Directories (Matrix)
name: easyp-lint
on:
push:
branches:
- main
- master
pull_request:
permissions:
contents: read
jobs:
lint:
name: lint
runs-on: ubuntu-latest
strategy:
matrix:
directory: [api/v1, api/v2, proto]
steps:
- uses: actions/checkout@v4
- name: easyp-lint
uses: easyp-tech/actions/lint@v1
with:
version: v0.12.0
directory: ${{ matrix.directory }}(optional)
The version of EasyP to use (docker image tag).
The default value is latest.
uses: easyp-tech/actions/lint@v1
with:
version: v0.12.0(optional)
Directory containing protobuf files to lint.
The default value is . (repository root).
uses: easyp-tech/actions/lint@v1
with:
directory: proto(optional)
Path to the EasyP configuration file.
uses: easyp-tech/actions/lint@v1
with:
config: easyp.yamlThe action parses EasyP output and creates GitHub annotations directly on the lines with issues.
Annotations will appear:
- In the "Files changed" tab of pull requests
- In the Actions workflow summary
The action uses the official EasyP Docker image (ghcr.io/easyp-tech/easyp), which ensures:
- Fast startup (no compilation needed)
- Consistent results across runs
- Easy version management
MIT