---
title: "Adopt the workflows"
description: "Run a pnpm or npm project's tests on pull requests with read-only repository access."
canonical_url: "https://actions.xovajs.com/en/guides/adoption"
---
# 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

<steps level="3">

### 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.

<code-group>

```json [pnpm]
{
  "schemaVersion": 1,
  "setup": {
    "toolchain": "mise",
    "install-command": "pnpm install --frozen-lockfile"
  },
  "code": { "check-command": "pnpm test" }
}
```

```json [npm]
{
  "schemaVersion": 1,
  "code": { "check-command": "npm test" }
}
```

</code-group>

### Add the PR workflow

Create `.github/workflows/ci.yml`.

```yaml [.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.

</steps>

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](https://actions.xovajs.com/en/examples/downloads) use one config. Download a ZIP to test, then build attachments from the version tag.
- [Monorepo package and documentation site](https://actions.xovajs.com/en/examples/monorepo) covers a shared package, an isolated npm tarball install and GitHub Pages deployment.
- [Release a version](https://actions.xovajs.com/en/guides/releasing). Choose npm or a standalone GitHub Release and configure checks for the tagged commit.
- [Deploy documentation](https://actions.xovajs.com/en/guides/deployment). Choose a provider and configure the artifact and deployment permissions.


## Sitemap

See the full [sitemap](https://actions.xovajs.com/sitemap.md) for all pages.
