checks.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. ---
  2. name: Checks
  3. on:
  4. push:
  5. branches:
  6. - master
  7. pull_request: null
  8. env:
  9. DISABLE_TELEMETRY: 1
  10. concurrency:
  11. group: checks-${{ github.ref }}
  12. cancel-in-progress: true
  13. jobs:
  14. libressl-checks:
  15. name: LibreSSL
  16. runs-on: ubuntu-latest
  17. steps:
  18. - name: Checkout
  19. uses: actions/checkout@v3
  20. with:
  21. submodules: recursive
  22. - name: Build
  23. run: >
  24. docker run -v "$PWD":/netdata -w /netdata alpine:latest /bin/sh -c
  25. 'apk add bash;
  26. ./packaging/installer/install-required-packages.sh --dont-wait --non-interactive netdata;
  27. apk del openssl openssl-dev;
  28. apk add libressl libressl-dev;
  29. autoreconf -ivf;
  30. ./configure;
  31. make;'
  32. clang-checks:
  33. name: Clang
  34. runs-on: ubuntu-latest
  35. steps:
  36. - name: Checkout
  37. uses: actions/checkout@v3
  38. with:
  39. submodules: recursive
  40. - name: Build
  41. run: |
  42. docker build -f .github/dockerfiles/Dockerfile.clang .
  43. gitignore-check:
  44. name: .gitignore
  45. runs-on: ubuntu-latest
  46. steps:
  47. - name: Checkout
  48. uses: actions/checkout@v3
  49. with:
  50. submodules: recursive
  51. - name: Prepare environment
  52. run: ./packaging/installer/install-required-packages.sh --dont-wait --non-interactive netdata
  53. - name: Build netdata
  54. run: ./netdata-installer.sh --dont-start-it --disable-telemetry --dont-wait --install /tmp/install
  55. - name: Check that repo is clean
  56. run: |
  57. git status --porcelain=v1 > /tmp/porcelain
  58. if [ -s /tmp/porcelain ]; then
  59. cat /tmp/porcelain
  60. exit 1
  61. fi