Skip to content

Add GitLab CI/CD setup guidance #2239

Description

@naokihaba

Documentation is

  • Missing
  • Outdated
  • Confusing
  • Not sure

Explain in Detail

setup-vp now supports GitLab CI/CD through a reusable remote template, following voidzero-dev/setup-vp#97.

However, the current Continuous Integration guide only covers GitHub Actions. This makes the GitLab integration less visible within the Vite+ documentation.

I plan to submit a PR to add GitLab CI/CD guidance to this page.

Your Suggestion for Changes

Update the overview to mention both GitHub Actions and GitLab CI/CD, and add a dedicated GitLab CI/CD section with a minimal example:

include:
  - remote: "https://raw.githubusercontent.com/voidzero-dev/setup-vp/v1/gitlab/setup-vp.yml"

test:
  extends: .setup-vp
  image: node:24
  script:
    - vp check
    - vp test
    - vp build

The section should also clarify the main differences from the GitHub Actions integration:

  • The GitLab template does not install Node.js, so the job must use a Node.js image or otherwise provide it.
  • Dependency caching must be configured through the job's GitLab cache: configuration.
  • The runner requires a Unix-like environment with bash and either curl or wget.
  • Advanced configuration and the complete input reference should remain in the setup-vp documentation to avoid duplicating information that may drift over time.

Relevant Page

https://viteplus.dev/guide/ci#overview

Reproduction (Optional)

No response

Steps to reproduce (Optional)

No response

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Fields

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions