Add apply-templates check (#4907)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
Co-authored-by: Eduard Aksamitov <e@euaaaio.ru>
This commit is contained in:
Andrey Sobolev
2024-03-11 11:24:46 +07:00
committed by GitHub
co-authored by Eduard Aksamitov
parent 79b4390911
commit 5cadf883c0
9 changed files with 38 additions and 11 deletions
+13 -2
View File
@@ -129,6 +129,17 @@ jobs:
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
- name: Apply templates...
run: node common/scripts/install-run-rush.js apply-templates
- name: Check templates
run: |
echo '================================================================'
echo 'Checking for diff files'
echo '================================================================'
git diff '*.js' '*.ts' '*.svelte' '*.json' | cat
[ -z "$(git diff --name-only '*.js' '*.ts' '*.svelte' '*.json' | cat)" ]
echo '================================================================'
- name: Formatting...
run: node common/scripts/install-run-rush.js fast-format
- name: Check files formatting
@@ -136,8 +147,8 @@ jobs:
echo '================================================================'
echo 'Checking for diff files'
echo '================================================================'
git diff '*.ts' '*.svelte' | cat
[ -z "$(git diff --name-only '*.ts' '*.svelte' | cat)" ]
git diff '*.js' '*.ts' '*.svelte' '*.json' | cat
[ -z "$(git diff --name-only '*.js' '*.ts' '*.svelte' '*.json' | cat)" ]
echo '================================================================'
test:
needs: build