1
0

pull-requests.yml 793 B

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