Files
schemastore/.github/workflows/lint.yml
Sorin Sbarnea bbbac6d970 Enable prettier on YAML files (#2250)
This change will ensure that YAML files are using a consistent
formatting and will reformat (normalize) them if needed.

Related:
2022-05-17 10:17:54 -07:00

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