Run nixpkgs-review in GitHub Actions
  • JavaScript 75.8%
  • Nix 24.2%
Find a file
2025-01-27 21:37:33 +01:00
.github/workflows feat: add link to nixpkgs-review-gha repo in pr comment 2025-01-27 21:37:33 +01:00
LICENSE init 2025-01-25 20:10:01 +01:00
README.md docs: add features, setup and usage instructions to readme 2025-01-27 21:37:32 +01:00

nixpkgs-review-gha

Run nixpkgs-review in GitHub Actions

Features

  • Build on x86_64-linux, aarch64-linux, x86_64-darwin and aarch64-darwin
  • No local setup
  • Automatically post results on the reviewed pull request
  • Wait for upstream evaluation to finish before running nixpkgs-review
  • Optionally start a tmate session after nixpkgs-review has finished to allow interactive testing/debugging via SSH

Setup

  1. Fork this repository.
  2. In your fork, go to the Actions tab and enable GitHub Actions workflows.
  3. (optional) If you want nixpkgs-review-gha to automatically post the results on the reviewed pull requests, you need to generate a personal access token:
    1. Go to https://github.com/settings/tokens and generate a new classic token with the public_repo scope.
    2. In your fork, go to "Settings" > "Secrets and variables" > "actions" and add a new repository secret:
      • name: GH_TOKEN
      • value: the personal access token you generated before

Usage

  1. Open the review workflow in the "Actions" tab
  2. Click on "Run workflow"
  3. Enter the number of the pull request in nixpkgs you would like to review and click on "Run workflow"
  4. Reload the page if necessary and click on the review run to see the logs