mirror of
https://github.com/andrey271192/PCAtelegram_web.git
synced 2026-09-20 11:55:32 +00:00
34 lines
842 B
YAML
34 lines
842 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
sanity:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: Python syntax
|
|
run: python -m compileall admin-web pcatelegram_web-bot
|
|
|
|
- name: JavaScript syntax
|
|
run: node --check admin-web/static/app.js
|
|
|
|
- name: Shell syntax
|
|
run: bash -n bootstrap.sh install.sh install_pcatelegram_web_bot.sh lib/*.sh lib/lang/*.sh
|
|
|
|
- name: JSON syntax
|
|
run: |
|
|
python -m json.tool templates_catalog.json >/dev/null
|
|
python -m json.tool pcatelegram_web-bot/lang/en.json >/dev/null
|
|
python -m json.tool pcatelegram_web-bot/lang/ru.json >/dev/null
|