1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diaspora_ynh.git synced 2024-09-03 18:26:13 +02:00

Add package_linter to github actions

This commit is contained in:
Augustin Trancart 2024-03-08 23:30:18 +01:00
parent 4931b9584a
commit 803102f733

41
.github/workflows/package_linter.yml vendored Normal file
View file

@ -0,0 +1,41 @@
name: YunoHost apps package linter
on:
# Allow to manually trigger the workflow
workflow_dispatch:
push:
branches:
- master
- testing
pull_request:
schedule:
- cron: '0 8 * * *'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install toml
- name: 'Clone YunoHost apps package linter'
run: |
git clone --depth=1 https://github.com/YunoHost/package_linter ~/package_linter
- name: 'Run linter'
run: |
~/package_linter/package_linter.py . > linter_logs && cat linter_logs
- name: 'Analyze linter logs'
run: |
grep "Not even a warning\!" linter_logs