0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-03-14 13:12:55 +00:00
netdata_netdata/.github/workflows/tests.yml
dependabot[bot] a13d9f3316
Bump actions/checkout from 3 to 4 (#15935)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 07:16:49 -04:00

41 lines
1.1 KiB
YAML

---
# Runs Tests on Pushes to `master` and Pull Requests
name: Tests
on:
push:
branches:
- master
paths:
- 'CMakeLists.txt'
- '**.c'
- '**.h'
pull_request:
paths:
- 'CMakeLists.txt'
- '**.c'
- '**.h'
env:
DISABLE_TELEMETRY: 1
concurrency:
group: tests-${{ github.ref }}
cancel-in-progress: true
jobs:
unit-tests-legacy:
name: Unit Tests (legacy)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Prepare environment
run: |
./packaging/installer/install-required-packages.sh --dont-wait --non-interactive netdata-all
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
- name: Run ./tests/run-unit-tests.sh
env:
CFLAGS: "-O1 -DNETDATA_INTERNAL_CHECKS=1 -DNETDATA_VERIFY_LOCKS=1"
run: |
./tests/run-unit-tests.sh