Skip to content

Commit 3e70692

Browse files
Merge pull request #4 from haiodo/enable-formatting-check
Enable formatting check
2 parents b8620c8 + c47a598 commit 3e70692

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ jobs:
3030
- name: Rush test
3131
run: node common/scripts/install-run-rush.js test --verbose
3232
- name: Publish packages
33+
- name: Formatting...
34+
run: node common/scripts/install-run-rush.js format --force
35+
- name: Check files formatting
36+
run: |
37+
echo '================================================================'
38+
echo 'Checking for diff files'
39+
echo '================================================================'
40+
git diff '*.js' '*.ts' '*.svelte' '*.json' '*.yaml' | cat
41+
[ -z "$(git diff --name-only '*.js' '*.ts' '*.svelte' '*.json' '*.yaml' | cat)" ]
42+
echo '================================================================'
3343
if: startsWith(github.ref, 'refs/tags/v0.7.') || startsWith(github.ref, 'refs/tags/s0.7.')
3444
env:
3545
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)