From 6900c1f2b30f529ba00e5ebf11d9415c08c97845 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Wed, 25 Oct 2023 17:13:54 +0200 Subject: [PATCH] Configured CI to run Ghost-CLI tests on Node 18 refs https://github.com/TryGhost/DevOps/issues/75 - this will install v4 using Node v16 and then switch to v18 as we're about to drop support for Node v16 --- .github/workflows/ci.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67bd014759..f42641eaaf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -773,6 +773,22 @@ jobs: - run: mv ghost-*.tgz ghost.tgz working-directory: ghost/core + - name: Install latest v4 + run: | + DIR=$(mktemp -d) + echo "V4_DIR=$DIR" >> $GITHUB_ENV + ghost install v4 --local -d $DIR + + - uses: actions/setup-node@v3 + env: + FORCE_COLOR: 0 + with: + node-version: '18.12.1' + + - name: Update from v4 + run: | + ghost update -f -d $V4_DIR --archive $(pwd)/ghost/core/ghost.tgz + - name: Clean Install run: | DIR=$(mktemp -d) @@ -784,12 +800,6 @@ jobs: ghost install local -d $DIR ghost update -d $DIR --archive $(pwd)/ghost/core/ghost.tgz - - name: Update from latest v4 - run: | - DIR=$(mktemp -d) - ghost install v4 --local -d $DIR - ghost update -f -d $DIR --archive $(pwd)/ghost/core/ghost.tgz - - name: Print debug logs if: failure() run: |