Repository navigation
ci: validate the reduced on-code-change inputs (do not merge) #1397
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow is triggered every time a change is pushed to any branches | |
| # Github actions command reference: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions | |
| name: On Code Change | |
| # The workflow could also be triggered on PRs | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| # Disable the workflow for doc-only changes | |
| # https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#example-excluding-paths | |
| paths-ignore: | |
| - "docs/**" | |
| jobs: | |
| on-code-change: | |
| # TEMPORARY: pinned to the branch of Jahia/jahia-modules-action#405 to validate that the | |
| # inputs dropped below are correctly derived. This PR is throw-away and must not be merged. | |
| uses: Jahia/jahia-modules-action/.github/workflows/reusable-on-code-change.yml@ci/reduce-on-code-change-inputs | |
| secrets: inherit | |
| with: | |
| module_id: javascript-modules-engine | |
| build_container_image: ghcr.io/jahia/jahia-docker-mvn-cache:17-jdk-noble-mvn-loaded | |
| integration_tests_provisioning_manifest: provisioning-manifest-build.yml | |
| integration_tests_testrail_project: Javascript Modules Engine | |
| # This workflow ensures that Windows builds are exactly the same as on other platforms | |
| test-on-windows: | |
| name: Test on Windows | |
| runs-on: windows-latest | |
| steps: | |
| - # https://github.com/actions/checkout/issues/135 | |
| name: Set git to use LF | |
| run: | | |
| git config --global core.autocrlf false | |
| git config --global core.eol lf | |
| - name: Checkout code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up the toolchain | |
| uses: jdx/mise-action@7e36c90d9ab29c415a2384db3006f3ec8a8cc654 # v4.2.4 | |
| - name: Install and build dependencies | |
| run: yarn && yarn workspace "@jahia/vite-plugin" build | |
| - name: Run tests | |
| run: yarn workspace "@jahia/vite-plugin" test |