From 2fc46bfe9a573edd7fcad60021a51bfac6ffbf1d Mon Sep 17 00:00:00 2001 From: per1234 Date: Mon, 25 Sep 2023 18:19:29 -0700 Subject: [PATCH] Add editorconfig-checker invocation step to workflow The editorconfig-checker/action-editorconfig-checker action is used in the "Check General Formatting" GitHub Actions workflow. The behavior of that action changed starting from the 2.0.0 release. Previously it ran editorconfig-checker on the files in the workspace. The action now solely serves to make editorconfig-checker available in the runner machine for use in subsequent steps of the job (equivalent to the various popular "setup-*" actions for other frameworks/languages/tools). This means it is now necessary to add a new step to the workflow to actually invoke editorconfig-checker. --- workflow-templates/check-general-formatting.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/workflow-templates/check-general-formatting.yml b/workflow-templates/check-general-formatting.yml index 4a13295..811c31c 100644 --- a/workflow-templates/check-general-formatting.yml +++ b/workflow-templates/check-general-formatting.yml @@ -21,5 +21,8 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Install editorconfig-checker + uses: editorconfig-checker/action-editorconfig-checker@v2.0.0 + - name: Check formatting - uses: editorconfig-checker/action-editorconfig-checker@v2 + run: editorconfig-checker