Files
kubeshark/.github/workflows/test.yml
M. Mert Yıldıran 7e6d89957a 👕 Fix linter and test workflows (#1241)
* Fix linter and test workflows

* Fix

* Fix

* Fix linter
2022-11-22 22:33:46 +03:00

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