Skip to content

Commit

Permalink
testing pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
losten-git committed Jun 26, 2024
1 parent 4b97c3b commit ba9a830
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 56 deletions.
7 changes: 0 additions & 7 deletions .github/prepare_ubuntu.sh

This file was deleted.

69 changes: 69 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Build check_interfaces

on:
pull_request:
branches: ["*"]

jobs:
build:
runs-on: ubuntu-latest
env:
CFLAGS: "-Wall"

steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libsnmp-dev

- name: Configure
run: |
autoreconf
./configure
- name: Make
run: make

- name: Start simmulation
run: |
setup-snmpsim-data /tmp/data
snmpsim-command-responder --daemonize --pid-file /tmp/snmp --data-dir=/tmp/data/network/switch --agent-udpv4-endpoint=127.0.0.1:1611
- name: Sleep
run: sleep 30s
shell: bash

- name: check_cisco_health
run: ./check_interfaces -h 127.0.0.1 --port=1611 -c cisco-c3560

clang-build:
runs-on: ubuntu-latest
env:
CC: clang
CFLAGS: "-Wall"

steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libsnmp-dev

- name: Configure
run: |
autoreconf
./configure
- name: Make
run: make

- name: Start simmulation
run: |
setup-snmpsim-data /tmp/data
snmpsim-command-responder --daemonize --pid-file /tmp/snmp --data-dir=/tmp/data/network/switch --agent-udpv4-endpoint=127.0.0.1:1611
- name: Sleep
run: sleep 30s
shell: bash

- name: check_cisco_health
run: ./check_interfaces -h 127.0.0.1 --port=1611 -c cisco-c3560
49 changes: 0 additions & 49 deletions .github/workflows/makefile.yml

This file was deleted.

0 comments on commit ba9a830

Please sign in to comment.