Skip to content
Open
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
47 changes: 47 additions & 0 deletions .github/workflows/test-go-e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Go E2E Tests

on:
pull_request: {}
workflow_dispatch: {}
# Uncomment to run on schedule (e.g., nightly)
# schedule:
# - cron: "0 2 * * *" # Run at 2 AM UTC daily

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test-go-e2e:
name: Run Go E2E Tests
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout code
uses: actions/checkout@v5

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: 1.25.6

- name: Install Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose

- name: Build Docker image
run: make build-docker

- name: Run E2E tests
run: make test-e2e

- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: e2e-test-results
path: |
test/e2e/*.log
test/e2e/envs/**/logs/
if-no-files-found: ignore
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
**/.DS_Store
.vscode
.env
/dist/
cmd/__debug_bin
**__debug**
target/
book/
tmp
.vscode
coverage.out
coverage.html
.idea
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ build-docker-nc: ## Builds a docker image with the aggkit binary - but without b
test-unit: ## Runs the unit tests
trap '$(STOP)' EXIT; MallocNanoZone=0 go test -count=1 -short -race -p 1 -covermode=atomic -coverprofile=coverage.out -timeout 15m ./...

.PHONY: test-e2e
test-e2e: ## Runs the e2e tests
go test -v -timeout 30m ./test/e2e/...

.PHONY: lint
lint: ## Runs the linter
export "GOROOT=$$(go env GOROOT)" && $$(go env GOPATH)/bin/golangci-lint run --timeout 5m
Expand Down
Loading
Loading