Ghost/.github/workflows/ghost-cli.yml
Daniel Lockyer 722a92e9b5 Added extra tests to Ghost-CLI GitHub Action
no issue

- test for a clean install and updating from the latest release
- upgrading from the previous major is waiting on an update from
  Ghost-CLI
2020-02-03 17:39:06 +00:00

45 lines
1.2 KiB
YAML

name: Ghost-CLI
on:
pull_request:
push:
branches:
- master
jobs:
clean-install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '10'
- run: npm install -g ghost-cli@latest
- run: zip -r ghost.zip .
- run: mkdir test
- run: ghost install local -d test --zip ../ghost.zip
latest-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '10'
- run: npm install -g ghost-cli@latest
- run: zip -r ghost.zip .
- run: mkdir test
- run: ghost install local -d test
- run: ghost update -d test --zip ../ghost.zip
# previous-major:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - run: git submodule update --init --force --recursive --depth=1
# - uses: actions/setup-node@v1
# with:
# node-version: '10'
# - run: npm install -g ghost-cli@latest
# - run: zip -r ghost.zip .
# - run: mkdir test
# - run: ghost install v2 --local -d test
# - run: ghost update -f -d test --zip ../ghost.zip