Add CI linting job

Use a single lint job

Run linting inside a container
This commit is contained in:
jo 2021-09-10 15:12:45 +02:00
parent 3a336375c2
commit 00b73a3819
1 changed files with 25 additions and 0 deletions

View File

@ -96,6 +96,31 @@ jobs:
cd airtime_mvc/tests
php ../../vendor/bin/phpunit
# Start lint the code without failing the entire workflow, should be merged
# into 'test' when the entire matrix succeeds.
lint:
runs-on: ubuntu-latest
container: ghcr.io/libretime/libretime-dev:buster
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Lint
run: |
make -C api lint
make -C python_apps/airtime_analyzer lint
make -C python_apps/airtime-celery lint
make -C python_apps/api_clients lint
make -C python_apps/pypo lint
test:
runs-on: ubuntu-latest
strategy: