From 1f3a5ee03a8928f868e184267405bfd7417dd687 Mon Sep 17 00:00:00 2001 From: pan93412 Date: Sun, 20 Nov 2022 19:14:46 +0800 Subject: [PATCH] ci: Add EditorConfig check --- .github/workflows/editorconfig-check.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/editorconfig-check.yml 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