Skip to content

Fix CI tests by building frontend assets#45

Merged
occult merged 1 commit into
mainfrom
fix-ci-tests
Jan 7, 2026
Merged

Fix CI tests by building frontend assets#45
occult merged 1 commit into
mainfrom
fix-ci-tests

Conversation

@occult

@occult occult commented Jan 7, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes GitHub Actions test failures by building frontend assets before running Go tests.

Problem

The CI tests were failing with:

  • pattern public/build/assets/*: no matching files found
  • inertia build manifest file not found: rename /home/runner/work/pagode/pagode/public/build/.vite/manifest.json

This happened because:

  • assets.go uses //go:embed public/build/assets/* which requires the directory to exist
  • InertiaJS requires the Vite manifest file at public/build/manifest.json

Solution

Added steps to the GitHub Actions workflow to:

  1. Set up Node.js 20 with npm caching
  2. Install frontend dependencies with npm ci
  3. Build frontend assets with npm run build

These steps run before the Go tests, ensuring all required assets exist.

Test plan

  • Verify workflow syntax is valid
  • Push and confirm CI tests pass

🤖 Generated with Claude Code

The Go tests were failing in CI because:
- assets.go embeds public/build/assets/* which didn't exist
- InertiaJS requires Vite manifest file at public/build/manifest.json

This adds Node.js setup and builds frontend assets before running tests.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@VitorFOG

VitorFOG commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

paGODe

@occult occult merged commit d3a694f into main Jan 7, 2026
1 check passed
felipekafuri pushed a commit to axioms-studio/bandeira that referenced this pull request Feb 18, 2026
)

The Go tests were failing in CI because:
- assets.go embeds public/build/assets/* which didn't exist
- InertiaJS requires Vite manifest file at public/build/manifest.json

This adds Node.js setup and builds frontend assets before running tests.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
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