1
0

pull-requests.yml 973 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. name: pull-requests
  2. on:
  3. pull_request:
  4. branches:
  5. - development
  6. - RC
  7. - master
  8. jobs:
  9. test-pr:
  10. name: Test Pull Request
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v4
  14. - uses: actions/setup-python@v5
  15. with:
  16. python-version: '3.13' # renovate: datasource=github-tags depName=python
  17. - name: Install dependencies
  18. run: |
  19. python -m pip install --upgrade pip
  20. pip install ansible==10.2.0 # renovate: datasource=pypi
  21. pip install ansible-lint==24.7.0 # renovate: datasource=pypi
  22. - name: Syntax Check
  23. run: |
  24. ansible-playbook site.yml --syntax-check
  25. - name: Ansible lint
  26. run: |
  27. ansible-lint -v roles/netbootxyz/tasks
  28. build-pr:
  29. name: Build Pull Request
  30. runs-on: ubuntu-latest
  31. steps:
  32. - uses: actions/checkout@v4
  33. - uses: actions/setup-python@v5
  34. - name: Build PR release
  35. run: |
  36. ./script/build_release pr