Skip to content

CI: unit tests and lint gate the deploy; tests on every pull request - #28

Merged
libishm1 merged 1 commit into
mainfrom
ci/test-gate
Nov 29, 2026
Merged

libishm1 merged 1 commit into
mainfrom
ci/test-gate

Conversation

@libishm1

Copy link
Copy Markdown
Owner

The first step of the unit test plan after Dr Jabi's review: until now nothing ran the tests automatically and the site deployed on a build alone.

  • deploy-frontend.yml: a test job (npm test, npm run lint) that the build needs, so a failing test or lint error stops the deploy.
  • test.yml (new): unit tests, lint and a build on every pull request into main that touches the frontend or the workflows.

Both test jobs use Node 22, because npm test passes a glob to node --test, which Node 20 does not expand. The build and deploy stay on Node 20.

This pull request is the new workflow's own first run.

The first step of the unit test plan after Dr Jabi's review (26 November):
nothing ran the tests automatically and the site deployed on a build alone.

- deploy-frontend.yml: a test job (npm test, npm run lint) that the build
  needs, so a failing test or lint error stops the deploy.
- test.yml (new): unit tests, lint and a build on every pull request into
  main that touches the frontend or the workflows.

Both test jobs use Node 22: npm test passes a glob to node --test, which
Node 20 does not expand. The build and deploy keep Node 20.
@libishm1
libishm1 merged commit 24dac90 into main Nov 29, 2026
1 check passed
@libishm1
libishm1 deleted the ci/test-gate branch November 29, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant