Skip to content

CI: fail on test failures and skip image push on pull requests - #1

Merged
deven1003 merged 2 commits into
mainfrom
ci/fix-pr-pipeline
Oct 11, 2026
Merged

deven1003 merged 2 commits into
mainfrom
ci/fix-pr-pipeline

Conversation

@deven1003

@deven1003 deven1003 commented Oct 11, 2026 •

Copy link
Copy Markdown
Owner
  • npm test was followed by || echo ..., so failing tests never failed the pipeline. The repo has a Vitest suite (src/__tests__/gameLogic.test.ts), so the fallback is removed.
  • The GHCR login and image push now run only on pushes to main. On pull requests the image is still built and scanned with Trivy, but nothing gets pushed (PRs don't have access to the TOKEN secret anyway).
  • The Trivy scan on this PR found 3 HIGH CVEs in libexpat from the nginx:alpine base image. Added RUN apk upgrade --no-cache to the nginx stage so the image picks up the fixed packages; the scan now passes.

🤖 Generated with Claude Code

deven1003 and others added 2 commits October 12, 2026 00:43
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@deven1003
deven1003 merged commit 1399be1 into main Oct 11, 2026
5 checks passed
@deven1003
deven1003 deleted the ci/fix-pr-pipeline branch October 11, 2026 19:26
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.

1 participant