Skip to content

Add GitHub Actions test workflow - #2

Merged
melvinsh merged 1 commit into
mainfrom
cursor/add-test-workflow-5de4
Aug 26, 2026
Merged

Add GitHub Actions test workflow#2
melvinsh merged 1 commit into
mainfrom
cursor/add-test-workflow-5de4

Conversation

@melvinsh

@melvinsh melvinsh commented Aug 26, 2026

Copy link
Copy Markdown
Owner

Summary

The repo has unit tests but the only workflow was release.yml (GoReleaser on tags). This adds .github/workflows/test.yml so every push to main and every PR runs:

  • go test -short -race ./...
  • go build ./cmd/subfaster

-short skips the live source suites in pkg/passive (TestSourcesWithoutKeys / TestSourcesWithKeys). Those need the network and API keys and already skip in short mode because they flake.

make test now matches CI (-short). make test-live runs the full suite.

Test plan

  • Local go test -short -race ./... passed
  • test workflow on this PR is green
Open in Web Open in Cursor 

The live source suites skip in short mode and need network plus API
keys, so CI stays on the unit tests. Point make test at the same
command and keep make test-live for the full suite.

Co-authored-by: Melvin Lammerts <melvinsh@users.noreply.github.com>
@melvinsh
melvinsh marked this pull request as ready for review August 26, 2026 09:35
@melvinsh
melvinsh merged commit d2bd9c7 into main Aug 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants