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
21 changes: 17 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ jobs:
run: make check-gazelle

# ---------------------------------------------------------------------------
# BUILD AND UNIT TESTS
# BUILD AND UNIT TESTS (parallel jobs, separate Bazel caches)
# ---------------------------------------------------------------------------
build-and-unit-test:
name: Build and Unit Test
build:
name: Build
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
runs-on: ubuntu-latest
steps:
Expand All @@ -85,6 +85,18 @@ jobs:
- name: Build project
run: make build

unit-test:
name: Unit Test
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
# This job executes untrusted PR code (make build/test/lint). Don't
# leave the GITHUB_TOKEN in the workspace git config while it runs.
persist-credentials: false
- uses: ./.github/actions/setup

- name: Run unit tests
run: make test

Expand Down Expand Up @@ -289,7 +301,8 @@ jobs:
needs:
- lint
- tidy
- build-and-unit-test
- build
- unit-test
- e2e
- gateway-integration-test
- orchestrator-integration-test
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ run-queue-admin: ## Run queue-admin CLI (use ARGS to pass arguments, e.g. make r

test: ## Run unit tests
@echo "Running unit tests..."
@$(BAZEL) test //... --test_tag_filters=-manual,-integration || echo "No unit tests found (only integration tests exist)"
@$(BAZEL) test //... --test_tag_filters=-manual,-integration --build_tests_only

test-no-cache: ## Run unit tests without cache (force re-run)
@echo "Running unit tests (no cache)..."
Expand Down
1 change: 1 addition & 0 deletions service/runway/server/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func TestPrimaryConsumer_GitFailureDisposition(t *testing.T) {
require.NoError(t, serviceConsumer.Start(context.Background()))

message := entityqueue.NewMessage("git-test-message", []byte("payload"), "partition", nil)
message.Tenant = "git-test"
delivery := queuemock.NewMockDelivery(ctrl)
delivery.EXPECT().Message().Return(message).AnyTimes()
delivery.EXPECT().Attempt().Return(1).AnyTimes()
Expand Down
Loading