From 32f06cb9722a9af2f9e15f13eed994b2d6228b95 Mon Sep 17 00:00:00 2001 From: avifenesh Date: Thu, 26 Dec 2024 20:43:54 +0000 Subject: [PATCH] Refactor CI workflows to reorder checkout step and update Alpine installation to include Redis Signed-off-by: avifenesh --- .github/workflows/java-cd.yml | 6 +++--- .github/workflows/npm-cd.yml | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/java-cd.yml b/.github/workflows/java-cd.yml index a033dded27..5ba8de61d7 100644 --- a/.github/workflows/java-cd.yml +++ b/.github/workflows/java-cd.yml @@ -225,13 +225,13 @@ jobs: host: ${{ fromJson(needs.load-platform-matrix.outputs.PLATFORM_MATRIX) }} runs-on: ${{ matrix.host.RUNNER }} steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup self-hosted runner access if: ${{matrix.host.TARGET == 'aarch64-unknown-linux-gnu' }} run: sudo chown -R $USER:$USER /home/ubuntu/action-runner-ilia/_work/valkey-glide + - name: Checkout + uses: actions/checkout@v4 + - name: Set up JDK uses: actions/setup-java@v4 with: diff --git a/.github/workflows/npm-cd.yml b/.github/workflows/npm-cd.yml index 5a66ecc8f8..818b0c3689 100644 --- a/.github/workflows/npm-cd.yml +++ b/.github/workflows/npm-cd.yml @@ -309,11 +309,11 @@ jobs: run: sudo chown -R $USER:$USER /home/ubuntu/action-runner-ilia/_work/valkey-glide - - name: install and git for alpine + - name: install redis and git for alpine if: ${{ contains(matrix.build.TARGET, 'musl') }} run: | apk update - apk add git + apk add git redis node -v - name: install Python for ubuntu @@ -336,6 +336,7 @@ jobs: arch: ${{ matrix.build.ARCH }} - name: Install engine + if: ${{ !contains(matrix.build.TARGET, 'musl') }} uses: ./.github/workflows/install-engine with: engine-version: "8.0"