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:
This commit is contained in:
Sorin Sbarnea
2022-05-17 18:17:54 +01:00
committed by GitHub
parent 0ab1ee04d7
commit bbbac6d970
17 changed files with 369 additions and 365 deletions

1
.github/labeler.yml vendored
View File

@@ -48,7 +48,6 @@ eslintrcjson:
gitignore:
- ".gitignore"
- ".gitattributes"
# Do not add "api", "schema" and "test" directories.
# Those are the usual commit. No need for extra attention.
# src/api/**/*

View File

@@ -11,3 +11,18 @@ jobs:
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

View File

@@ -4,7 +4,6 @@ on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
@@ -12,8 +11,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'npm'
node-version: "16"
cache: "npm"
cache-dependency-path: src/package-lock.json
- name: npm ci
run: |
@@ -23,4 +22,3 @@ jobs:
run: |
cd src
npm run build