mirror of
https://github.com/kubeshark/kubeshark.git
synced 2026-05-06 01:07:13 +00:00
46 lines
890 B
YAML
46 lines
890 B
YAML
name: Test
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- 'develop'
|
|
- 'main'
|
|
push: # needed to upload test coverage report to codecov
|
|
branches:
|
|
- 'develop'
|
|
- 'main'
|
|
|
|
concurrency:
|
|
group: mizu-tests-validation-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
run-unit-tests:
|
|
name: Unit Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Go 1.17
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: '^1.17'
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v2
|
|
|
|
- shell: bash
|
|
run: |
|
|
sudo apt-get install libpcap-dev
|
|
|
|
- name: CLI Test
|
|
run: make test-cli
|
|
|
|
- name: Agent Test
|
|
run: make test-agent
|
|
|
|
- name: Shared Test
|
|
run: make test-shared
|
|
|
|
- name: Upload coverage to Codecov
|
|
uses: codecov/codecov-action@v2
|
|
|