From e0bcb6b27187b2115ac37340e74dd112996f5209 Mon Sep 17 00:00:00 2001 From: Snider Date: Sat, 21 Mar 2026 13:53:57 +0000 Subject: [PATCH] ci: add GitHub Actions workflow with Codecov Runs tests for brain, monitor, and agentic packages on push to main. Co-Authored-By: Virgil --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7c2bbfc --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: + push: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version-file: go.mod + + - name: Run tests with coverage + run: | + go test -coverprofile=coverage.out ./pkg/brain/... ./pkg/monitor/... ./pkg/agentic/... + sed -i 's|dappco.re/go/agent/||g' coverage.out + + - name: Upload to Codecov + uses: codecov/codecov-action@v5 + with: + files: coverage.out + token: ${{ secrets.CODECOV_TOKEN }}