31 lines
594 B
YAML
31 lines
594 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Python syntax check
|
|
run: |
|
|
python -m py_compile init_db.py refresh_domain_data.py update_registrar_prices.py
|
|
|
|
- name: PHP syntax check
|
|
run: |
|
|
php -l api.php
|
|
|
|
- name: Script smoke checks
|
|
run: |
|
|
bash -n refresh_and_publish.sh
|
|
python init_db.py
|