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:
parent
6691f0da26
commit
6900c1f2b3
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@ -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: |
|
||||
|
Loading…
Reference in New Issue
Block a user