Add CI workflow for frontend and backend checks #57

Merged
Copilot merged 5 commits from copilot/add-ci-lint-format-test into main 2026-01-06 20:05:10 -06:00
Copilot commented 2026-01-05 09:51:14 -06:00 (Migrated from github.com)

Adds automated CI checks for lint, build, and test on pushes and PRs to main.

Workflow Jobs

  • frontend-lint: ESLint validation
  • frontend-build: TypeScript compilation + Vite build
  • frontend-test: Vitest test suite
  • go-vet: Go static analysis
  • go-test: Go test suite

Configuration

permissions:
  contents: read

jobs:
  frontend-lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/setup-node@v4
        with:
          node-version: '20'
          cache: 'npm'
          cache-dependency-path: web/package-lock.json
      - run: npm ci
      - run: npm run lint

All jobs run in parallel with npm and Go module caching. Uses Node.js 20 and Go 1.24.

Note

Pre-existing issues in the codebase will cause initial CI failures (frontend lint errors, TypeScript compilation errors, and test failures). These should be addressed in separate PRs.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add lint/format/test checks to CI</issue_title>
<issue_description>## Summary
Add a CI workflow to run lint, type-check/build, and tests for the web app (and optionally Go vet/test) on pushes/PRs.

Scope

  • Create GitHub Actions workflow with jobs for frontend lint/test/build.
  • Optionally include Go vet and test if desired (fast subset acceptable).
  • Cache npm and Go modules for speed.

Acceptance Criteria

  • Workflow runs on pushes and PRs to main; passes on clean repo state.
  • Steps: install deps, lint, test, build (frontend), plus Go vet/test if included.
  • Fails the check on errors; surfaces logs.

Testing

  • Validate workflow locally via act (optional) or by inspecting successful run after push.
    </issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Adds automated CI checks for lint, build, and test on pushes and PRs to main. ## Workflow Jobs - **frontend-lint**: ESLint validation - **frontend-build**: TypeScript compilation + Vite build - **frontend-test**: Vitest test suite - **go-vet**: Go static analysis - **go-test**: Go test suite ## Configuration ```yaml permissions: contents: read jobs: frontend-lint: runs-on: ubuntu-latest steps: - uses: actions/setup-node@v4 with: node-version: '20' cache: 'npm' cache-dependency-path: web/package-lock.json - run: npm ci - run: npm run lint ``` All jobs run in parallel with npm and Go module caching. Uses Node.js 20 and Go 1.24. ## Note Pre-existing issues in the codebase will cause initial CI failures (frontend lint errors, TypeScript compilation errors, and test failures). These should be addressed in separate PRs. <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > > ---- > > *This section details on the original issue you should resolve* > > <issue_title>Add lint/format/test checks to CI</issue_title> > <issue_description>## Summary > Add a CI workflow to run lint, type-check/build, and tests for the web app (and optionally Go vet/test) on pushes/PRs. > > ## Scope > - Create GitHub Actions workflow with jobs for frontend lint/test/build. > - Optionally include Go `vet` and `test` if desired (fast subset acceptable). > - Cache npm and Go modules for speed. > > ## Acceptance Criteria > - Workflow runs on pushes and PRs to main; passes on clean repo state. > - Steps: install deps, lint, test, build (frontend), plus Go vet/test if included. > - Fails the check on errors; surfaces logs. > > ## Testing > - Validate workflow locally via `act` (optional) or by inspecting successful run after push. > </issue_description> > > ## Comments on the Issue (you are @copilot in this section) > > <comments> > </comments> > </details> <!-- START COPILOT CODING AGENT SUFFIX --> - Fixes subculture-collective/mandalay#13 <!-- START COPILOT CODING AGENT TIPS --> --- 💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey).
PatrickFanella (Migrated from github.com) reviewed 2026-01-05 09:51:14 -06:00
copilot-pull-request-reviewer[bot] (Migrated from github.com) reviewed 2026-01-05 10:28:15 -06:00
copilot-pull-request-reviewer[bot] (Migrated from github.com) left a comment

Pull request overview

This PR adds a comprehensive CI/CD pipeline using GitHub Actions to automate code quality checks for both frontend and backend on pushes and pull requests to the main branch.

Key Changes:

  • Adds CI workflow with 5 parallel jobs: frontend lint, build, test, and backend Go vet and test
  • Implements dependency caching for npm and Go modules for optimized performance
  • Updates README with CI/CD documentation section

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/ci.yml Defines GitHub Actions workflow with 5 parallel jobs for frontend (ESLint, TypeScript build, Vitest tests) and backend (Go vet, Go test) with Node.js 20 and Go setup
README.md Adds CI/CD section documenting the automated checks and updates project status to include the new CI pipeline

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

## Pull request overview This PR adds a comprehensive CI/CD pipeline using GitHub Actions to automate code quality checks for both frontend and backend on pushes and pull requests to the main branch. **Key Changes:** - Adds CI workflow with 5 parallel jobs: frontend lint, build, test, and backend Go vet and test - Implements dependency caching for npm and Go modules for optimized performance - Updates README with CI/CD documentation section ### Reviewed changes Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments. | File | Description | | ---- | ----------- | | .github/workflows/ci.yml | Defines GitHub Actions workflow with 5 parallel jobs for frontend (ESLint, TypeScript build, Vitest tests) and backend (Go vet, Go test) with Node.js 20 and Go setup | | README.md | Adds CI/CD section documenting the automated checks and updates project status to include the new CI pipeline | --- 💡 <a href="/subculture-collective/mandalay/new/main/.github/instructions?filename=*.instructions.md" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Add Copilot custom instructions</a> for smarter, more guided reviews. <a href="https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Learn how to get started</a>.
Sign in to join this conversation.