Skip to content

Update snmp.yml (#32) #25

Update snmp.yml (#32)

Update snmp.yml (#32) #25

Workflow file for this run

name: deploy
on: [push, pull_request]
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run Shellcheck
uses: azohra/shell-linter@latest
with:
path: "run.sh"
severity: "warning, error"
test:
name: test
needs: lint
runs-on: ubuntu-latest
steps:
- name: deploy with sh script
run: curl -fsSL https://raw.githubusercontent.com/IgorKha/Grafana-Mikrotik/master/run.sh | bash -s --
- name: Test Grafana
run: sleep 10 && curl -GLsS --retry 5 --retry-connrefused --retry-delay 2 'http://localhost:3000/api/health'
- name: Test Prometheus
run: curl -GLsS --retry 5 --retry-delay 2 "http://localhost:9090/-/ready"
- name: Test snmp_exporter
run: curl -ILsS --retry 5 --retry-delay 2 "http://localhost:9116"