mirror of
https://github.com/netdata/netdata.git
synced 2025-03-14 13:12:55 +00:00

* Drop unused Dockerfile.test. It’s not been used for years, and it doesn’t even work at this point for it’s intended purpose. * Remove CodeClimate configuration. We’re not using it anymore, so there is no point to keeping the configuration around. * Remove the build_external directory. This isn’t used by any of our code AFAICT, and if it _is_ needed, it should actually be in some sub-directory of `tests` instead of a top-level directory whose name doesn’t even describe what it does. * Remove .gitattributes If there's any objection we can reinstate it. * Move coverity-scan.sh under packaging/utils * Move cmake files under packaging/cmake * Remove devcontainer * Fix up coverity script to run correctly from new location. --------- Co-authored-by: vkalintiris <vasilis@netdata.cloud>
64 lines
2.2 KiB
YAML
64 lines
2.2 KiB
YAML
---
|
|
# Runs coverity-scan.sh every 24h on `master`
|
|
name: Coverity Scan
|
|
on:
|
|
schedule:
|
|
- cron: '0 1 * * *'
|
|
pull_request:
|
|
paths:
|
|
- .github/workflows/coverity.yml
|
|
- packaging/utils/coverity-scan.sh
|
|
env:
|
|
DISABLE_TELEMETRY: 1
|
|
concurrency:
|
|
group: coverity-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
coverity:
|
|
if: github.repository == 'netdata/netdata'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
id: checkout
|
|
with:
|
|
submodules: recursive
|
|
- name: Prepare environment
|
|
id: prepare
|
|
env:
|
|
DEBIAN_FRONTEND: 'noninteractive'
|
|
run: |
|
|
./packaging/installer/install-required-packages.sh \
|
|
--dont-wait --non-interactive netdata
|
|
sudo apt-get install -y libjson-c-dev libyaml-dev libipmimonitoring-dev \
|
|
libcups2-dev libsnappy-dev libprotobuf-dev \
|
|
libprotoc-dev libssl-dev protobuf-compiler \
|
|
libnetfilter-acct-dev libmongoc-dev libxen-dev \
|
|
libsystemd-dev ninja-build
|
|
- name: Run coverity-scan
|
|
id: run
|
|
env:
|
|
REPOSITORY: 'netdata/netdata'
|
|
COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
|
COVERITY_SCAN_SUBMIT_MAIL: ${{ secrets.COVERITY_SCAN_SUBMIT_MAIL }}
|
|
run: |
|
|
bash -x ./packaging/utils/coverity-scan.sh --with-install
|
|
- name: Failure Notification
|
|
uses: rtCamp/action-slack-notify@v2
|
|
env:
|
|
SLACK_COLOR: 'danger'
|
|
SLACK_FOOTER: ''
|
|
SLACK_ICON_EMOJI: ':github-actions:'
|
|
SLACK_TITLE: 'Coverity run failed:'
|
|
SLACK_USERNAME: 'GitHub Actions'
|
|
SLACK_MESSAGE: |-
|
|
${{ github.repository }}: Coverity failed to run correctly.
|
|
Checkout: ${{ steps.checkout.outcome }}
|
|
Environment preparation: ${{ steps.prepare.outcome }}
|
|
Coverity run: ${{ steps.run.outcome }}
|
|
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
if: ${{
|
|
failure()
|
|
&& github.event_name != 'pull_request'
|
|
&& startsWith(github.ref, 'refs/heads/master')
|
|
}}
|