mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-02-21 22:34:29 +00:00
This adds a basic configuration for editorconfig checker. The supplied configuration checks against trailing whitespaces and issues with newlines. Example: | tools/packaging/kernel/configs/fragments/x86_64/numa.conf: | Wrong line endings or no final newline | tools/packaging/release/generate_vendor.sh: | 44: Trailing whitespace Signed-off-by: Manuel Huber <manuelh@nvidia.com>
30 lines
750 B
YAML
30 lines
750 B
YAML
name: EditorConfig checker
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
permissions: {}
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
editorconfig-checker:
|
|
name: editorconfig-checker
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Checkout the code
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
|
|
- name: Set up editorconfig-checker
|
|
uses: editorconfig-checker/action-editorconfig-checker@4b6cd6190d435e7e084fb35e36a096e98506f7b9 # v2.1.0
|
|
with:
|
|
version: v3.6.1
|
|
|
|
- name: Run editorconfig-checker
|
|
run: editorconfig-checker
|