main.yml 1.1 KB

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