diff --git a/.github/workflows/editorconfig-check.yml b/.github/workflows/editorconfig-check.yml new file mode 100644 index 0000000..b8fcbc8 --- /dev/null +++ b/.github/workflows/editorconfig-check.yml @@ -0,0 +1,23 @@ +name: Check if the codebase matches the EditorConfig rules + +on: + push: + pull_request: + workflow_dispatch: + +permissions: + actions: write + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + editorconfig-check: + name: Run EditorConfig Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: editorconfig-checker/action-editorconfig-checker@main + - run: editorconfig-checker -config .ecrc.json