mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
722a92e9b5
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
45 lines
1.2 KiB
YAML
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
|