-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from Napsty/cicd
Add some basic CI tests
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |