Unit testing for GitHub Actions — run tests from the VS Code Test Explorer.
This extension integrates actharness with the VS Code Test Explorer, letting you discover, run, and debug GitHub Actions unit tests without leaving your editor.
Features
- Discover
*.actharness.tsand*.test.tstest files automatically - Run individual tests or entire suites from the Test Explorer
- See pass/fail inline in the editor gutter
- Re-run tests on file save via the built-in watch mode
Requirements
- Node.js ≥ 22
actharnessinstalled in your project (npm install --save-dev actharness)
Configuration
| Setting | Default | Description |
|---|---|---|
actharness.nodeExecutable |
node |
Path to the Node.js executable. Useful when using mise or nvm. |
Getting started
npm install --save-dev actharness
npx actharness init action.yml # scaffold action.test.ts
Then open the Test Explorer panel and click Run All.