github-actions-vscode-ci

Optimize GitHub Actions CI pipelines for VS Code extensions with npm ci and xvfb-run.

18|4|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/csharpfritz/SquadUI --skill github-actions-vscode-ci
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-actions-vscode-ci
Source: https://github.com/csharpfritz/SquadUI/tree/main/.ai-team/skills/github-actions-vscode-ci
Command: npx skills add https://github.com/csharpfritz/SquadUI --skill github-actions-vscode-ci

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides best practices and patterns for setting up efficient and reliable Continuous Integration (CI) pipelines specifically for VS Code extensions using GitHub Actions.

Core Features & Use Cases

  • Optimized CI Workflows: Implements strategies like npm ci, xvfb-run for tests, and concurrency control to reduce CI time and prevent redundant builds.
  • Best Practices: Details common pitfalls and anti-patterns to avoid in VS Code extension CI.
  • Use Case: Ensure your VS Code extension's tests run reliably on Linux CI environments and that duplicate builds for the same pull request are automatically cancelled, saving valuable CI resources.

Quick Start

Configure your GitHub Actions workflow to use xvfb-run -a npm test for running VS Code extension tests.

Frequently Asked Questions about github-actions-vscode-ci

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run VS Code extension tests in GitHub Actions CI?

GitHub Actions CI for VS Code extensions uses `xvfb-run -a npm test` to execute extension tests in a headless Linux environment, ensuring reliable automated testing without a physical display.

Why do VS Code extension tests fail on Linux CI environments?

VS Code extension tests fail on Linux CI environments because they require a display server. The Skill uses `xvfb-run` to provide a virtual display buffer, allowing the extension host to initialize and run tests successfully.

Can I cancel redundant GitHub Actions builds for the same pull request?

Yes, you can cancel redundant GitHub Actions builds for the same pull request by implementing concurrency control in your workflow, which automatically cancels previous in-progress runs when new code is pushed, saving CI resources.

What is the best way to manage dependencies in GitHub Actions for VS Code extensions?

The best way to manage dependencies in GitHub Actions for VS Code extensions is using `npm ci` instead of `npm install`. This ensures clean, reproducible, and faster dependency installation by leveraging the package-lock.json file.

What are common anti-patterns when optimizing GitHub Actions CI?

Common anti-patterns when optimizing GitHub Actions CI include lacking concurrency control for pull request builds, using `npm install` instead of `npm ci`, and failing to use `xvfb-run` for headless VS Code extension testing.