main.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. name: Validate Manifest
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. branches:
  8. - main
  9. jobs:
  10. validate:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Checkout Repository
  14. uses: actions/checkout@v2
  15. - name: Set up Python 3.x
  16. uses: actions/setup-python@v2
  17. with:
  18. python-version: '3.x'
  19. - name: Install dependencies
  20. run: |
  21. python3 -m venv venv
  22. source venv/bin/activate
  23. pip install -r https://raw.githubusercontent.com/flipperdevices/flipper-application-catalog/main/tools/requirements.txt
  24. - name: Install UFBT SDK
  25. run: |
  26. export UFBT_HOME=`realpath venv/ufbt`
  27. $UFBT_HOME/ufbt update
  28. - name: Download bundle.py
  29. run: |
  30. curl -o bundle.py https://raw.githubusercontent.com/flipperdevices/flipper-application-catalog/main/tools/bundle.py
  31. - name: Run manifest validation
  32. run: |
  33. source venv/bin/activate
  34. python3 bundle.py --nolint manifest.yml bundle.zip
  35. - name: Clean up
  36. run: |
  37. rm -rf venv bundle.py bundle.zip