Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Integration Tests

on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
integration-test:
name: Run Integration Tests
runs-on: ubuntu-latest
timeout-minutes: 20

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y git jq

- name: Install Go tools
run: |
go install golang.org/x/tools/cmd/digraph@latest
go install golang.org/x/vuln/cmd/govulncheck@latest

- name: Build binaries
run: make gvs cg

- name: Run integration tests
run: make test-integration

- name: Cleanup
if: always()
run: |
pkill -f './bin/gvs' || true
rm -rf /tmp/gvs-cache /tmp/cg-* /tmp/gvc-*
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ endif
run: gvs cg
./bin/gvs

.PHONY: test-integration

test-integration:
@echo "Running integration tests..."
go test -v -count=1 ./internal/api -run TestCallgraphIntegration -timeout 15m

.PHONY: gvs

gvs: $(GVS_SOURCES)
Expand Down
Loading
Loading