Files
sbbb/.github/workflows/front-dependencies-installation.yml
Stephan Meijer 4f4eccd9c8 👷(docker) add arm64 support and upgrade CI workflow steps (#11)
* 👷(docker) add arm64 platform support for image builds

Add QEMU and Buildx setup steps to enable multi-architecture Docker
image builds for both linux/amd64 and linux/arm64 platforms.

Signed-off-by: Stephan Meijer <me@stephanmeijer.com>

* ⬆️(ci) upgrade GitHub Actions workflow steps to latest versions

Update actions/setup-node from v4 to v6 and actions/cache from v4 to v5
for improved performance, security patches, and Node.js runtime compatibility.

Signed-off-by: Stephan Meijer <me@stephanmeijer.com>

---------

Signed-off-by: Stephan Meijer <me@stephanmeijer.com>
2026-02-19 22:14:35 +01:00

37 lines
1.2 KiB
YAML

name: Install frontend installation reusable workflow
on:
workflow_call:
inputs:
node_version:
required: false
default: '20.x'
type: string
jobs:
front-dependencies-installation:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Restore the frontend cache
uses: actions/cache@v5
id: front-node_modules
with:
path: "src/frontend/**/node_modules"
key: front-node_modules-${{ hashFiles('src/frontend/**/yarn.lock') }}
- name: Setup Node.js
if: steps.front-node_modules.outputs.cache-hit != 'true'
uses: actions/setup-node@v6
with:
node-version: ${{ inputs.node_version }}
- name: Install dependencies
if: steps.front-node_modules.outputs.cache-hit != 'true'
run: cd src/frontend/ && yarn install --frozen-lockfile
- name: Cache install frontend
if: steps.front-node_modules.outputs.cache-hit != 'true'
uses: actions/cache@v5
with:
path: "src/frontend/**/node_modules"
key: front-node_modules-${{ hashFiles('src/frontend/**/yarn.lock') }}