Moved Ghost-CLI tests to main testing workflow

no issue

- keeps all testing in one place and allows us to depend on a single
  workflow in the future
This commit is contained in:
Daniel Lockyer 2020-04-16 07:36:15 +01:00
parent fa1fcd8870
commit 5adbc4aa6a
2 changed files with 31 additions and 37 deletions

View File

@ -1,37 +0,0 @@
name: Ghost-CLI
on:
pull_request:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- uses: actions/setup-node@v1
with:
node-version: '10'
- run: npm install -g ghost-cli@next
- run: zip -r ghost.zip .
- name: Clean Install
run: |
DIR=$(mktemp -d)
ghost install local -d $DIR --zip $GITHUB_WORKSPACE/ghost.zip
- name: Latest Release
run: |
DIR=$(mktemp -d)
ghost install local -d $DIR
ghost update -d $DIR --zip $GITHUB_WORKSPACE/ghost.zip
- name: Previous Major
run: |
DIR=$(mktemp -d)
ghost install v2 --local -d $DIR
ghost update -f -d $DIR --zip $GITHUB_WORKSPACE/ghost.zip

View File

@ -46,3 +46,34 @@ jobs:
- run: grunt test-unit --verbose
- run: grunt test-regression --verbose
if: startsWith(github.head_ref, 'renovate/') || github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'all-tests')
ghost-cli:
name: Ghost-CLI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- uses: actions/setup-node@v1
with:
node-version: '10'
- run: npm install -g ghost-cli@next
- run: zip -r ghost.zip .
- name: Clean Install
run: |
DIR=$(mktemp -d)
ghost install local -d $DIR --zip $GITHUB_WORKSPACE/ghost.zip
- name: Latest Release
run: |
DIR=$(mktemp -d)
ghost install local -d $DIR
ghost update -d $DIR --zip $GITHUB_WORKSPACE/ghost.zip
- name: Previous Major
run: |
DIR=$(mktemp -d)
ghost install v2 --local -d $DIR
ghost update -f -d $DIR --zip $GITHUB_WORKSPACE/ghost.zip