Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSPL-3156: Add kubectl-splunk Plugin for Executing Splunk Commands within Kubernetes Pods #1407

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from
46 changes: 46 additions & 0 deletions .github/workflows/kubectl-splunk-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# .github/workflows/ci.yml

name: Kubectl Splunk CI

on:
push:
branches:
- feature/CSPL-3152
pull_request:
branches:
- feature/CSPL-3152

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Install dependencies
run: |
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r tools/kubect-splunk/requirements.txt
pip install -e .
pip install pytest coverage

- name: Run Tests with Coverage
run: |
source .venv/bin/activate
coverage run -m unittest discover -s tests
coverage report
coverage xml

- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2
with:
files: coverage.xml
flags: unittests
name: codecov-umbrella
Loading
Loading