mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
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
This commit is contained in:
parent
9183cf6045
commit
722a92e9b5
1 changed files with 27 additions and 3 deletions
30
.github/workflows/ghost-cli.yml
vendored
30
.github/workflows/ghost-cli.yml
vendored
|
@ -6,7 +6,7 @@ on:
|
|||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
clean-install:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -16,5 +16,29 @@ jobs:
|
|||
- run: npm install -g ghost-cli@latest
|
||||
- run: zip -r ghost.zip .
|
||||
- run: mkdir test
|
||||
- run: ghost install local --zip ../ghost.zip
|
||||
working-directory: 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
|
||||
|
|
Loading…
Add table
Reference in a new issue