CI/CD Automation #40

Open
opened 2026-07-24 11:04:17 +00:00 by frank · 0 comments
Owner

Goal

Add CI/CD for testing and publishing NiceOAuth releases.

Requirements

  • Run unit tests for pushes and pull requests targeting dev.
  • Run unit and integration tests for pushes and pull requests targeting main.
  • Require the relevant checks to pass before merging.
  • Build the package before publishing.
  • Publish stable releases to npm and the Forgejo package registry.
  • Publish only from versioned releases based on main.
  • Keep registry credentials in Forgejo secrets.

Acceptance criteria

  • Changes targeting dev must pass unit tests.
  • Changes targeting main must pass unit and integration tests.
  • Integration tests use the exemplary Authelia and Caddy setup.
  • Failed checks prevent merging into the protected branch.
  • Stable releases publish the matching package version to npm.
  • Stable releases publish the matching package version to Forgejo.
  • Existing package versions are not overwritten.
  • Publishing does not run for ordinary branch pushes.
## Goal Add CI/CD for testing and publishing NiceOAuth releases. ## Requirements * Run unit tests for pushes and pull requests targeting `dev`. * Run unit and integration tests for pushes and pull requests targeting `main`. * Require the relevant checks to pass before merging. * Build the package before publishing. * Publish stable releases to npm and the Forgejo package registry. * Publish only from versioned releases based on `main`. * Keep registry credentials in Forgejo secrets. ## Acceptance criteria * [ ] Changes targeting `dev` must pass unit tests. * [ ] Changes targeting `main` must pass unit and integration tests. * [ ] Integration tests use the exemplary Authelia and Caddy setup. * [ ] Failed checks prevent merging into the protected branch. * [ ] Stable releases publish the matching package version to npm. * [ ] Stable releases publish the matching package version to Forgejo. * [ ] Existing package versions are not overwritten. * [ ] Publishing does not run for ordinary branch pushes.
frank added this to the Forward Auth mode milestone 2026-07-24 11:04:17 +00:00
Sign in to join this conversation.
No description provided.