mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-06 17:57:42 +02:00
Merge pull request #4 from haiodo/enable-formatting-check
Enable formatting check
This commit is contained in:
@@ -30,6 +30,16 @@ jobs:
|
||||
- name: Rush test
|
||||
run: node common/scripts/install-run-rush.js test --verbose
|
||||
- name: Publish packages
|
||||
- name: Formatting...
|
||||
run: node common/scripts/install-run-rush.js format --force
|
||||
- name: Check files formatting
|
||||
run: |
|
||||
echo '================================================================'
|
||||
echo 'Checking for diff files'
|
||||
echo '================================================================'
|
||||
git diff '*.js' '*.ts' '*.svelte' '*.json' '*.yaml' | cat
|
||||
[ -z "$(git diff --name-only '*.js' '*.ts' '*.svelte' '*.json' '*.yaml' | cat)" ]
|
||||
echo '================================================================'
|
||||
if: startsWith(github.ref, 'refs/tags/v0.7.') || startsWith(github.ref, 'refs/tags/s0.7.')
|
||||
env:
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user