diff options
Diffstat (limited to '.github/workflows/static_checks.yml')
-rw-r--r-- | .github/workflows/static_checks.yml | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/.github/workflows/static_checks.yml b/.github/workflows/static_checks.yml index 3fa759bb03..30468034ff 100644 --- a/.github/workflows/static_checks.yml +++ b/.github/workflows/static_checks.yml @@ -9,7 +9,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 - # Azure repositories are not reliable, we need to prevent azure giving us packages. + # Azure repositories are not reliable, we need to prevent Azure giving us packages. - name: Make apt sources.list use the default Ubuntu repositories run: | sudo rm -f /etc/apt/sources.list.d/* @@ -18,7 +18,9 @@ jobs: - name: Install dependencies run: | - sudo apt-get install -qq dos2unix recode clang-format + sudo apt-get install -qq dos2unix recode clang-format-11 + sudo update-alternatives --remove-all clang-format + sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-11 100 sudo pip3 install black==20.8b1 pygments - name: File formatting checks (file_format.sh) @@ -33,6 +35,13 @@ jobs: run: | bash ./misc/scripts/black_format.sh + - name: JavaScript style and documentation checks via ESLint and JSDoc + run: | + cd platform/javascript + npm ci + npm run lint + npm run docs -- -d dry-run + - name: Documentation checks run: | doc/tools/makerst.py --dry-run doc/classes modules |