Guides
Adopt the workflows
Run a pnpm or npm project's tests on pull requests with read-only repository access.
This example uses a Node project on GitHub.com with a test script in its root package.json.
Run tests on pull requests
Set the check command
Create .github/xova.json.
- pnpm: Commit
pnpm-lock.yamland declare your Node and pnpm versions inmise.toml. - npm: Commit
package-lock.json. The workflow uses Node 24 andnpm ciby default.
{
"schemaVersion": 1,
"setup": {
"toolchain": "mise",
"install-command": "pnpm install --frozen-lockfile"
},
"code": { "check-command": "pnpm test" }
}
{
"schemaVersion": 1,
"code": { "check-command": "npm test" }
}
Add the PR workflow
Create .github/workflows/ci.yml.
.github/workflows/ci.yml
name: CI
on: pull_request
permissions:
contents: read
jobs:
check:
uses: xova-dev/actions/.github/workflows/check.yml@XOVA_ACTIONS_SHA
Open a pull request
Replace XOVA_ACTIONS_SHA directly in the workflow file with the full 40-character SHA of a commit that passed CI in xova-dev/actions.
Commit the files and open a pull request. In the CI run, verify that dependencies were installed from the lockfile and the project’s test script passed.
If GitHub blocks the run, check that your repository's Actions settings allow the workflow and the actions it calls. For a private workflow, its repository must also grant your repository access.
Next steps
- Daily CI and tag publication use one config. Download a ZIP to test, then build attachments from the version tag.
- Monorepo package and documentation site covers a shared package, an isolated npm tarball install and GitHub Pages deployment.
- Release a version. Choose npm or a standalone GitHub Release and configure checks for the tagged commit.
- Deploy documentation. Choose a provider and configure the artifact and deployment permissions.