Skip to content

Commit

Permalink
Add editorconfig-checker invocation step to workflow
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
per1234 committed Sep 26, 2023
1 parent fe49377 commit 2881f59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/check-general-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Check formatting
- name: Install editorconfig-checker
uses: editorconfig-checker/action-editorconfig-checker@v2

- name: Check formatting
run: editorconfig-checker
5 changes: 4 additions & 1 deletion workflow-templates/check-general-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Check formatting
- name: Install editorconfig-checker
uses: editorconfig-checker/action-editorconfig-checker@v2

- name: Check formatting
run: editorconfig-checker

0 comments on commit 2881f59

Please sign in to comment.