pull_request.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. permissions:
  10. contents: read # to fetch code (actions/checkout)
  11. jobs:
  12. check-format:
  13. runs-on: ubuntu-latest
  14. steps:
  15. - uses: actions/checkout@v2
  16. - uses: wolletd/[email protected]
  17. with:
  18. target-ref: master
  19. build:
  20. runs-on: ubuntu-latest
  21. container:
  22. image: ghcr.io/kamailio/pkg-kamailio-docker:master-${{ matrix.distribution }}
  23. volumes:
  24. - ${{ github.workspace }}:/code
  25. env:
  26. DIST: ${{ matrix.distribution }}
  27. CC: ${{ matrix.compilier }}
  28. strategy:
  29. matrix:
  30. include:
  31. - distribution: bullseye
  32. compilier: gcc
  33. - distribution: bullseye
  34. compilier: clang
  35. steps:
  36. - uses: actions/checkout@v2
  37. - uses: ammaraskar/[email protected]
  38. - name: build
  39. run: |
  40. cd /code
  41. ./test/travis/build_travis.sh
  42. shell: bash