pull_request.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ---
  2. name: checks_pr
  3. 'on':
  4. pull_request:
  5. branches:
  6. - master
  7. # Allows you to run this workflow manually from the Actions tab
  8. workflow_dispatch:
  9. jobs:
  10. check-format:
  11. runs-on: ubuntu-latest
  12. permissions:
  13. contents: read # to fetch code (actions/checkout)
  14. steps:
  15. - uses: actions/checkout@v4
  16. - uses: wolletd/[email protected]
  17. with:
  18. target-ref: master
  19. build:
  20. runs-on: ubuntu-latest
  21. permissions:
  22. contents: read # to fetch code (actions/checkout)
  23. container:
  24. image: ghcr.io/kamailio/pkg-kamailio-docker:master-${{ matrix.distribution }}
  25. credentials:
  26. username: ${{ github.actor }}
  27. password: ${{ secrets.GITHUB_TOKEN }}
  28. volumes:
  29. - ${{ github.workspace }}:/code
  30. env:
  31. DIST: ${{ matrix.distribution }}
  32. CC: ${{ matrix.compilier }}
  33. strategy:
  34. matrix:
  35. include:
  36. - distribution: bookworm
  37. compilier: gcc
  38. - distribution: bookworm
  39. compilier: clang
  40. steps:
  41. - uses: actions/checkout@v4
  42. - uses: ammaraskar/[email protected]
  43. - name: build
  44. run: |
  45. cd /code
  46. ./test/travis/build_travis.sh
  47. shell: bash