mirror of
https://github.com/chenasraf/schemastore.git
synced 2026-05-18 01:58:58 +00:00
This change will ensure that YAML files are using a consistent formatting and will reformat (normalize) them if needed. Related:
29 lines
890 B
YAML
29 lines
890 B
YAML
name: Lint
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
lint-editorconfig:
|
|
runs-on: ubuntu-latest
|
|
name: Lint for editorconfig violations
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@v3
|
|
- name: Check for editorconfig violations
|
|
uses: editorconfig-checker/action-editorconfig-checker@v1
|
|
|
|
# Enablement of https://pre-commit.ci is desirable as it also
|
|
# enable auto-fixes for formatting violations. Still we still want to run
|
|
# our own github action, just in case the external service becomes
|
|
# unavailable.
|
|
- uses: actions/setup-python@v3
|
|
with:
|
|
python-version: "3.10"
|
|
- name: Install pre-commit
|
|
run: |
|
|
python3 -m pip install --upgrade pip
|
|
python3 -m pip install --upgrade pre-commit
|
|
- name: Run pre-commit
|
|
run: |
|
|
pre-commit run --all-files
|