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
This commit is contained in:
Daniel Lockyer 2023-10-25 17:13:54 +02:00 committed by Daniel Lockyer
parent 6691f0da26
commit 6900c1f2b3

View File

@ -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: |