mirror of
https://github.com/kubeshark/kubeshark.git
synced 2026-07-10 00:51:09 +00:00
46 lines
926 B
YAML
46 lines
926 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
name: Test
|
|
|
|
jobs:
|
|
run-unit-tests:
|
|
name: Unit Tests
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
steps:
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: Set up Go 1.17
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: '^1.17'
|
|
|
|
- name: Install dependencies
|
|
shell: bash
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install -y \
|
|
libpcap-dev \
|
|
llvm \
|
|
libbpf-dev \
|
|
linux-headers-$(uname -r)
|
|
./devops/install-capstone.sh
|
|
|
|
- name: Generate eBPF object files and Go bindings
|
|
run: make bpf
|
|
|
|
- name: Test
|
|
run: make test
|
|
|
|
- name: Upload coverage to Codecov
|
|
uses: codecov/codecov-action@v2
|