Skip to content

feat(library)!: an open JLink, the mixin label, a narrowable allow-list, and the edit-mode URL #1427

feat(library)!: an open JLink, the mixin label, a narrowable allow-list, and the edit-mode URL

feat(library)!: an open JLink, the mixin label, a narrowable allow-list, and the edit-mode URL #1427

# 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:
uses: Jahia/jahia-modules-action/.github/workflows/reusable-on-code-change.yml@v2
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