Usage in CI
Testplane can be easily integrated into any CI system. For GitHub Actions, we recommend using the official action gemini-testing/gh-actions-testplane, which automatically caches browsers and generates reports.
GitHub Actions Setup
Create a .github/workflows/testplane.yml file in your repository root:
.github/workflows/testplane.yml
name: Testplane Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: npm ci
- uses: gemini-testing/gh-actions-testplane@v1
with:
browser: "chrome,firefox" # Optional: list of browsers
Additional Features
The action supports additional configuration parameters:
config-path— path to config file (default:testplane.config.ts)set— run specific test setsgrep— filter tests by patternstorybook— integration with @testplane/storybook
For more details on parameters and advanced usage scenarios, see the GitHub Actions setup guide.
Other CI Systems
For more details on configuring Testplane for other CI systems, refer to the configuration documentation.