Skip to content

Commit

Permalink
Add testing with github actions (#991)
Browse files Browse the repository at this point in the history
* Add testing with github actions

* Refine testing, remove old CI/CD, disable maintainer mode
  • Loading branch information
tsadpbb authored Sep 11, 2024
1 parent 472551b commit 8d765f5
Show file tree
Hide file tree
Showing 27 changed files with 186 additions and 371 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Nagios Core Tests

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build_and_test:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
# https://github.com/actions/runner-images/issues/2139
run: |
sudo apt update
sudo apt remove libgd3 nginx
sudo apt install libgd-dev valgrind
- name: configure
run: ./configure --enable-testing
- name: Run Tests
run: make test
303 changes: 0 additions & 303 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Nagios Core 4 Change Log
4.5.5 - 2024-XX-XX
------------------
* Update configure scripts using newer versions of autotools (Dylan Anderson)
* Disable maintainer mode for TAP testing and add Github Actions (Dylan Anderson)

4.5.4 - 2024-08-14
------------------
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ Nagios 4.x

![Nagios!](https://www.nagios.com/wp-content/uploads/2015/05/Nagios-Black-500x124.png)

[![Build Status](https://travis-ci.org/NagiosEnterprises/nagioscore.svg?branch=master)](https://travis-ci.org/NagiosEnterprises/nagioscore)

[![Nagios Core Tests](https://github.com/NagiosEnterprises/nagioscore/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/NagiosEnterprises/nagioscore/actions/workflows/test.yml?query=branch%3Amaster)

Nagios is a host/service/network monitoring program written in C and
released under the GNU General Public License, version 2. CGI programs
Expand Down
7 changes: 4 additions & 3 deletions tap/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ LIPO = @LIPO@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
Expand Down Expand Up @@ -329,7 +330,7 @@ all: all-recursive
.SUFFIXES:
am--refresh: Makefile
@:
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
Expand All @@ -355,9 +356,9 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck

$(top_srcdir)/configure: $(am__configure_deps)
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
$(am__cd) $(srcdir) && $(AUTOCONF)
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
$(am__aclocal_m4_deps):

Expand Down
Loading

0 comments on commit 8d765f5

Please sign in to comment.