mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-14 13:49:42 +00:00
Include HTTP tests into the CI
This commit is contained in:
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
@@ -27,10 +27,19 @@ jobs:
|
|||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- shell: bash
|
- name: Install libpcap
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install libpcap-dev
|
sudo apt-get install libpcap-dev
|
||||||
|
|
||||||
|
- name: Install gsutil
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
|
||||||
|
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install google-cloud-sdk
|
||||||
|
|
||||||
- name: CLI Test
|
- name: CLI Test
|
||||||
run: make test-cli
|
run: make test-cli
|
||||||
|
|
||||||
@@ -40,6 +49,9 @@ jobs:
|
|||||||
- name: Shared Test
|
- name: Shared Test
|
||||||
run: make test-shared
|
run: make test-shared
|
||||||
|
|
||||||
|
- name: Extensions Test
|
||||||
|
run: make test-extensions
|
||||||
|
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
uses: codecov/codecov-action@v2
|
uses: codecov/codecov-action@v2
|
||||||
|
|
||||||
|
3
Makefile
3
Makefile
@@ -92,5 +92,8 @@ test-agent:
|
|||||||
test-shared:
|
test-shared:
|
||||||
@echo "running shared tests"; cd shared && $(MAKE) test
|
@echo "running shared tests"; cd shared && $(MAKE) test
|
||||||
|
|
||||||
|
test-extensions:
|
||||||
|
@echo "running http tests"; cd tap/extensions/http && $(MAKE) test
|
||||||
|
|
||||||
acceptance-test:
|
acceptance-test:
|
||||||
@echo "running acceptance tests"; cd acceptanceTests && $(MAKE) test
|
@echo "running acceptance tests"; cd acceptanceTests && $(MAKE) test
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
test: test-pull
|
test: test-pull
|
||||||
MIZU_TEST=1 go test *.go -covermode=atomic -coverprofile=coverage.out
|
@MIZU_TEST=1 go test -v ./... -coverpkg=./... -coverprofile=coverage.out -covermode=atomic
|
||||||
|
|
||||||
test-update: test-pull
|
test-update: test-pull
|
||||||
MIZU_TEST=1 TEST_UPDATE=1 go test *.go -v -covermode=atomic -coverprofile=coverage.out
|
@MIZU_TEST=1 TEST_UPDATE=1 go test -v ./... -coverpkg=./... -coverprofile=coverage.out -covermode=atomic
|
||||||
|
|
||||||
test-pull:
|
test-pull:
|
||||||
./pull.sh
|
@./pull.sh
|
||||||
|
Reference in New Issue
Block a user