Skip to content

Commit

Permalink
Merge pull request #9 from Napsty/cicd
Browse files Browse the repository at this point in the history
Add some basic CI tests
  • Loading branch information
Napsty committed Dec 7, 2023
2 parents 7cd4eb7 + 8789255 commit 40ea266
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/01-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# @file 01-ubuntu.yml
---
name: Tests on Ubuntu

# Trigger the workflow on push or pull request
on: [push, pull_request]

jobs:
help:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install sysstat
run: |
sudo apt-get install -qq -yy sysstat
- name: Launch plugin with --help
run: |
./check_cpu_stats.sh --help
execute:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install sysstat
run: |
sudo apt-get install -qq -yy sysstat
- name: Launch plugin
run: |
./check_cpu_stats.sh
thresholds:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install sysstat
run: |
sudo apt-get install -qq -yy sysstat
- name: Launch plugin
run: |
./check_cpu_stats.sh -w 60,50,20 -c 80,60,30

0 comments on commit 40ea266

Please sign in to comment.