-
Notifications
You must be signed in to change notification settings - Fork 1
ci: Use reusable workflow for integration tests #562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: Use reusable workflow for integration tests #562
Conversation
44892ee to
87c78ee
Compare
c70e82f to
32b77cf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors GitHub Actions workflows to use reusable workflow patterns, consolidating CI logic into centralized workflow templates. This reduces duplication and improves maintainability by delegating complex job definitions to shared workflows.
Key changes:
- Replaced inline job definitions with calls to reusable workflows from
jahia-modules-action - Added a lint script for TypeScript files in the tests package
- Enabled video recording in Cypress configuration
Reviewed Changes
Copilot reviewed 4 out of 74 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.github/workflows/on-code-change.yml |
Replaced multiple inline jobs (static-analysis, build, sonar-analysis, integration-tests-standalone) with a single call to reusable workflow |
.github/workflows/manual-run.yml |
Simplified integration-tests job by delegating to reusable workflow |
tests/package.json |
Added lint script for ESLint validation |
tests/cypress.config.ts |
Enabled video recording for test runs |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
47b5abb to
3acfa15
Compare
3acfa15 to
c2109eb
Compare
Fgerthoffert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At a first glance this looks good, but can you make sure the nightlys and manual-run runs before merging (i.e. manually triggering the nightly on the branch)
|
Workflow executions against this branch: |
Description
Use the reusable workflow when running the integration tests in the different workflows.
For the nightly tests, add an entry in the matrix to run against the latest Jahia release in addition to the latest Jahia snapshot.
Also, move the Cypress test module from
javascript-modules-engine/tests/totests/to align with the convention we use in the rest of our projects.Tip
Documentation to guide the reviews: How to do a code review