Skip to content

Auto-commit

Auto-commit #11

Workflow file for this run

name: CI
on:
push:
branches: [ main, 001-helix-agent ]
pull_request:
branches: [ main, 001-helix-agent ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23.x'
- name: Install protoc (protobuf-compiler)
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Install protoc-gen-go
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
- name: Proto codegen
run: bash .specify/scripts/bash/create-proto-code.sh
- name: Build
run: go build ./...
- name: Run Unit Tests
run: go test -v -coverprofile=coverage_unit.out ./internal/...
- name: Run Integration Tests
run: go test -v -coverprofile=coverage_integration.out ./tests/integration/...
- name: Run E2E Tests
run: go test -v ./tests/e2e/...
env:
TEST_ENV: ci
- name: Run Stress Tests
run: go test -v ./tests/stress/...
env:
TEST_ENV: ci
- name: Run Security Tests
run: go test -v ./tests/security/...
env:
TEST_ENV: ci
- name: Run Standalone Tests
run: |
cd tests/standalone
go run test_api_standalone.go
go run test_ensemble_standalone.go
go run test_final_production.go
- name: Generate Coverage Report
run: |
go tool cover -html=coverage_unit.out -o coverage_unit.html
go tool cover -html=coverage_integration.out -o coverage_integration.html
go tool cover -func=coverage_unit.out
go tool cover -func=coverage_integration.out
- name: Upload Coverage Reports
uses: actions/upload-artifact@v3
with:
name: coverage-reports
path: |
coverage_*.out
coverage_*.html