Grafana-Mikrotik/.github/workflows/action.yml
2021-10-11 21:09:36 +03:00

34 lines
No EOL
865 B
YAML

name: simple test
on:
push:
branches: master
jobs:
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:
needs: lint
runs-on: ubuntu-latest
steps:
- name: deploy with sh script
run: sh -c "$(curl -fsSL https://raw.githubusercontent.com/IgorKha/Grafana-Mikrotik/master/run.sh)" ""
- name: Test Grafana
run: sleep 5 && curl -ILsS --retry 5 --retry-delay 2 "http://localhost:3000/login"
- name: Test Prometheus
run: curl -ILsS --retry 5 --retry-delay 2 "http://localhost:9090"
- name: Test snmp_exporter
run: curl -ILsS --retry 5 --retry-delay 2 "http://localhost:9116"