Skip to content

Conversation

@baptistegrimaud
Copy link
Contributor

@baptistegrimaud baptistegrimaud commented Nov 13, 2025

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/ to tests/ 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

@baptistegrimaud baptistegrimaud force-pushed the ci-use-reusable-workflow-for-integration-tests branch from 44892ee to 87c78ee Compare November 13, 2025 10:34
@GauBen GauBen force-pushed the ci-use-reusable-workflow-for-integration-tests branch from c70e82f to 32b77cf Compare November 13, 2025 17:10
@GauBen GauBen marked this pull request as ready for review November 13, 2025 17:10
@GauBen GauBen requested a review from a team as a code owner November 13, 2025 17:10
Copilot AI review requested due to automatic review settings November 13, 2025 17:10
Copy link
Contributor

Copilot AI left a 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.

@baptistegrimaud baptistegrimaud marked this pull request as draft November 14, 2025 07:19
@baptistegrimaud baptistegrimaud force-pushed the ci-use-reusable-workflow-for-integration-tests branch from 47b5abb to 3acfa15 Compare November 14, 2025 07:57
@baptistegrimaud baptistegrimaud changed the title ci: Use reusable workflow for on code changes ci: Use reusable workflow for integration tests Nov 14, 2025
@baptistegrimaud baptistegrimaud force-pushed the ci-use-reusable-workflow-for-integration-tests branch from 3acfa15 to c2109eb Compare November 14, 2025 08:04
@baptistegrimaud baptistegrimaud marked this pull request as ready for review November 14, 2025 08:29
@baptistegrimaud baptistegrimaud self-assigned this Nov 14, 2025
Copy link
Member

@Fgerthoffert Fgerthoffert left a 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)

@baptistegrimaud baptistegrimaud enabled auto-merge (squash) November 16, 2025 07:53
@baptistegrimaud
Copy link
Contributor Author

@baptistegrimaud baptistegrimaud merged commit 1b4b20f into main Nov 17, 2025
15 checks passed
@baptistegrimaud baptistegrimaud deleted the ci-use-reusable-workflow-for-integration-tests branch November 17, 2025 07:43
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.

4 participants