Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.15 KB

File metadata and controls

49 lines (33 loc) · 1.15 KB

Setup EditorConfig Action

This action uses editorconfig-checker to validate files.

Usage

Pre-requisites

Create a workflow .yml file in your repositories .github/workflows directory. An example workflow is available below. For more information, reference the GitHub Help Documentation for Creating a workflow file.

Inputs

Field Description
version Version (default: latest)

Example workflow

name: EditorConfig Checker

on:
  pull_request:
    branches:
      - main

jobs:
  editorconfig:
    runs-on: ubuntu-24.04
    steps:
      - name: Check out code
        uses: actions/checkout@v6

      - name: Set up editorconfig-checker
        uses: editorconfig-checker/action-editorconfig-checker@main

      - name: Run editorconfig-checker
        run: editorconfig-checker

License

MIT LICENSE