Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
32 changes: 32 additions & 0 deletions actions/frontend-install/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'Install frontend dependencies required by backend tests'
author: 'Ibexa AS'
description: >-
Sets up Node.js and installs the npm packages that backend test suites need, using the
lockfile shipped with this action. Currently this is @typescript-eslint/typescript-estree,
used by the ibexa/admin-ui translation extractor to read Translator.trans() calls from
TypeScript sources. Add this action next to composer-install in packages that ship
.ts/.tsx files. Packages are exposed as node_modules/ in the repository root, which Node
searches both in ibexa/admin-ui itself and in packages having it in vendor/.

inputs:
node-version:
description: 'Node.js version to set up'
required: false
default: '24'

runs:
using: "composite"
steps:
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ inputs.node-version }}

- name: Install TypeScript translation extractor dependencies
shell: bash
run: |
npm ci --prefix "${GITHUB_ACTION_PATH}" --ignore-scripts

# Node looks for node_modules/ only in directories above the file importing them.
# The repository root is above the extractor script in every layout.
mkdir -p node_modules
cp -R "${GITHUB_ACTION_PATH}/node_modules/." node_modules/
262 changes: 262 additions & 0 deletions actions/frontend-install/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions actions/frontend-install/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "ibexa-frontend-install",
"description": "Dependencies of the ibexa/admin-ui TypeScript translation extractor, installed into vendor/ for backend test suites.",
"private": true,
"license": "UNLICENSED",
"dependencies": {
"@typescript-eslint/typescript-estree": "8.62.1"
}
}