Skip to content

Commit 831c1ee

Browse files
committed
Add unit tests
1 parent f81de08 commit 831c1ee

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the "main" branch
8+
push:
9+
pull_request:
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
15+
jobs:
16+
test:
17+
# The type of runner that the job will run on
18+
runs-on: ubuntu-latest
19+
20+
# Steps represent a sequence of tasks that will be executed as part of the job
21+
steps:
22+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23+
- uses: actions/checkout@v4
24+
25+
- name: Make tools executable
26+
run: chmod +x *.sh
27+
28+
# Runs a set of commands using the runners shell
29+
- name: Test k8s-sysreport.sh
30+
run: ./test-k8s-sysreport.sh --out-dir k8s
31+
32+
- name: Test kubectl-sysreport.sh
33+
run: ./test-kubectl-sysreport.sh --out-dir kubectl
34+
35+
- name: 'Upload Artifacts'
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: results
39+
path: |
40+
k8s/**
41+
kubectl/**
42+
retention-days: 7

0 commit comments

Comments
 (0)