Repository navigation
ci: Run and gate on unit tests in CI. - #23989
Conversation
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #23989 +/- ##
=======================================
Coverage 91.37% 91.38%
=======================================
Files 1137 1137
Lines 71591 71591
Branches 3875 3875
=======================================
+ Hits 65416 65422 +6
+ Misses 6140 6134 -6
Partials 35 35
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-1cb6dd135e65f07b58c3c23864c94d78b704335f
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-1cb6dd135e65f07b58c3c23864c94d78b704335fAfterwards, run the upgrade commands from the latest release notes. |
22b2578 to
328f3f0
Compare
328f3f0 to
e7435b0
Compare
The test step ran every vitest project, including the Playwright-backed browser tests that cannot run in this job, and discarded the result with || exit 0 - so unit test failures never failed CI. Scope the step to the Unit Tests project and let its exit code count.
e7435b0 to
1cb6dd1
Compare
Details
What does this PR change?
The CI test step ran bare
vitest(every project, including Playwright-backed browser tests that can't run in that job) and discarded the result with|| exit 0— so unit test failures never failed CI. The step now runs only the Unit Tests project, and its exit code counts.Stacked on #23991, which un-breaks co-located unit tests so there is a fully green suite to gate on.
Why is this change needed?
Upcoming router PRs (#23990, #23988) rely on unit tests gating regressions. A test step that cannot fail gates nothing.
How was this tested?
pnpm exec vitest run --project "Unit Tests"fromweb/(the exact command CI now runs): 4 files / 41 tests pass on this branch.Linked issues
Checklist
make all)make docs)