mirror of
https://github.com/andrey271192/PCAtelegram_web.git
synced 2026-09-20 11:55:32 +00:00
chore: harden admin and add CI
This commit is contained in:
33
docs/ci/github-actions.yml
Normal file
33
docs/ci/github-actions.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
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
|
||||
Reference in New Issue
Block a user