Skip to content

refactor(test): consolidate testing infrastructure with Docker Compose #235

refactor(test): consolidate testing infrastructure with Docker Compose

refactor(test): consolidate testing infrastructure with Docker Compose #235

Workflow file for this run

name: Build and Unit Tests
on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check BUILD files are up to date
run: |
echo "Running Gazelle to check BUILD files..."
make gazelle
if ! git diff --quiet; then
echo "❌ BUILD files are out of date!"
echo ""
echo "The following files were modified by Gazelle:"
git diff --name-only
echo ""
echo "Please run 'make gazelle' locally and commit the changes."
exit 1
fi
echo "✅ BUILD files are up to date"
- name: Build project
run: make build
- name: Run unit tests
run: make test || echo "No unit tests found"