mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-25 16:42:34 +00:00
Aurora IT tests failing periodically with download of node (#34107)
Closes #33767 Co-authored-by: Jon Koops <jonkoops@gmail.com> Signed-off-by: Ryan Emerson <remerson@redhat.com>
This commit is contained in:
21
.github/actions/node-cache/action.yml
vendored
Normal file
21
.github/actions/node-cache/action.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Node Cache
|
||||
description: Caches Node and PNPM binaries
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Get Node.js and PNPM versions
|
||||
id: tooling-versions
|
||||
shell: bash
|
||||
run: |
|
||||
echo "node=$(mvn help:evaluate -Dexpression=node.version -q -DforceStdout | cut -c 2-)" >> $GITHUB_OUTPUT
|
||||
echo "pnpm=$(mvn help:evaluate -Dexpression=pnpm.version -q -DforceStdout)" >> $GITHUB_OUTPUT
|
||||
|
||||
# Downloading Node.js often fails due to network issues, therefore we cache the artifacts downloaded by the frontend plugin.
|
||||
- uses: actions/cache@v4
|
||||
name: Cache Node.js and PNPM binaries
|
||||
with:
|
||||
path: |
|
||||
~/.m2/repository/com/github/eirslett/node
|
||||
~/.m2/repository/com/github/eirslett/pnpm
|
||||
key: ${{ runner.os }}-frontend-plugin-artifacts-${{ steps.tooling-versions.outputs.node }}-${{ steps.tooling-versions.outputs.pnpm }}
|
||||
Reference in New Issue
Block a user