Skip to content

Setup CI with GitHub Actions #8

@yokoberek

Description

@yokoberek

Overview

Add a GitHub Actions CI workflow to automatically validate code quality on every push and pull request to main.

What to implement

Create .github/workflows/ci.yml that runs the following steps in order:

  1. Checkoutactions/checkout@v4
  2. Setup Nodeactions/setup-node@v4 with Node 24 and npm cache
  3. Installnpm ci
  4. Typechecknpm run typecheck
  5. Lintnpm run lint
  6. Testnpm test
  7. Buildnpm run build

Notes

  • Use Node 24 (not 20 or 22). The project uses WXT which depends on packages that require >=22.13.0, and the package-lock.json was generated with npm 11 (ships with Node 24). Using an older Node version causes npm ci to fail due to lock file inconsistencies with optional platform-specific packages (@emnapi/core, @emnapi/runtime).
  • The project uses Vite 6 (not 5). WXT 0.20.x uses the filter object syntax in Vite plugin hooks which is a Vite 6 feature — wxt prepare silently breaks with Vite 5.
  • Trigger on push and pull_request targeting main.

Acceptance criteria

  • CI runs on every push and PR to main
  • All steps pass on a clean checkout

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions