pull-requests.yml 858 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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.10'
  17. - name: Install dependencies
  18. run: |
  19. python -m pip install --upgrade pip
  20. pip install ansible==10.2.0 ansible-lint==24.7.0
  21. - name: Syntax Check
  22. run: |
  23. ansible-playbook -i inventory site.yml --syntax-check
  24. - name: Ansible lint
  25. run: |
  26. ansible-lint -v roles/netbootxyz/tasks
  27. build-pr:
  28. name: Build Pull Request
  29. runs-on: ubuntu-latest
  30. steps:
  31. - uses: actions/checkout@v4
  32. - uses: actions/setup-python@v5
  33. - name: Build PR release
  34. run: |
  35. ./script/build_release pr