main.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 --upgrade pip
  24. pip install -r https://raw.githubusercontent.com/flipperdevices/flipper-application-catalog/main/tools/requirements.txt
  25. - name: Install UFBT SDK
  26. run: |
  27. source venv/bin/activate
  28. git clone https://github.com/flipperdevices/ufbt.git venv/ufbt
  29. export UFBT_HOME=`realpath venv/ufbt`
  30. $UFBT_HOME/ufbt update
  31. - name: Download bundle.py
  32. run: |
  33. curl -o bundle.py https://raw.githubusercontent.com/flipperdevices/flipper-application-catalog/main/tools/bundle.py
  34. - name: Run manifest validation
  35. run: |
  36. source venv/bin/activate
  37. python3 bundle.py --nolint manifest.yml bundle.zip
  38. - name: Clean up
  39. run: |
  40. rm -rf venv bundle.py