Xova
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.yaml and declare your Node and pnpm versions in mise.toml.
  • npm: Commit package-lock.json. The workflow uses Node 24 and npm ci by default.
{
  "schemaVersion": 1,
  "setup": {
    "toolchain": "mise",
    "install-command": "pnpm install --frozen-lockfile"
  },
  "code": { "check-command": "pnpm 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

Copyright © 2026