Daniel Lockyer
fb26e3d892
Updated migrations test to rollback to different versions
...
no issue
- in 4.0, we don't expect to rollback to 3.0 because there are
irreversible migrations
- the existing test attempts to do this because it was written for v3
- this commit updates the test to apply to v4, although this will need
to change soon when we switch branches
2021-02-02 16:12:54 +00:00
Daniel Lockyer
032741a5ef
Enabled tests and canary build on 4.0 branch
...
no issue
- we want tests to run on the 4.0 branch, along with Slack notifications
- we also want a canary build of the 4.0 branch, but this requires some
alterations to bump to a premajor + use a different artifact name
2021-01-21 11:36:41 +00:00
Daniel Lockyer
ff11b42c33
Inlined canary build workflow into tests
...
- this allows us to rely on successful test steps before building a
canary zip
2021-01-19 12:11:34 +00:00
Renovate Bot
1b0a8f5fbf
Update actions/setup-node action to v2
2021-01-04 08:56:33 +00:00
Daniel Lockyer
fc9e107254
Revert "Bumped Node version used for Ghost-CLI tests"
...
- this reverts commit a43f4dc4de
- we can't use Node 12 here because Ghost v1 doesn't support it...
2020-11-23 11:22:23 +00:00
Daniel Lockyer
a43f4dc4de
Bumped Node version used for Ghost-CLI tests
...
- our recommended version is Node 12 so we should use this
- possibly also solves some random CI failures we were seeing with
sqlite3 not installing?
2020-11-23 11:18:48 +00:00
Daniel Lockyer
736c96439b
Increased sleep delay before killing Ghost in CI tests
...
- We'd randomly see SQLite take more than 10 seconds to set up the DB in
CI so Ghost was getting killed prematurely, causing test failures
2020-11-20 08:41:59 +00:00
Daniel Lockyer
6b8bfb81fc
Fixed canary build on release commits
...
- because the Admin submodule has been updated, there aren't any
differences that can be committed so we shouldn't do it
- this should check if we have uncommitted changes and only commit if so
2020-11-17 14:23:44 +00:00
Daniel Lockyer
249c4a3e83
Enabled cloning of submodules in migrations test
...
- we start Ghost in this test but Ghost will check Casper, which isn't
cloned without this commit
2020-11-17 09:16:03 +00:00
Daniel Lockyer
7640fa3bee
Revert "Bumped CI rollback version to 3.30"
...
- this reverts commit d22bbf58c7
- the issue with a migration was actually valid and we've fixed it
2020-11-11 11:59:02 +00:00
Daniel Lockyer
d22bbf58c7
Bumped CI rollback version to 3.30
2020-11-11 11:12:21 +00:00
Daniel Lockyer
d67683d7e6
Switched to running Ghost in CI migration tests
...
- if we only run 'knex-migrator init', the settings don't get populated like
they would when running Ghost
- switching to running Ghost for initialization is more realistic of
what would happen IRL
2020-11-11 10:42:13 +00:00
Daniel Lockyer
36fb04f735
Renamed workflow to Canary
...
- makes more sense than "zip"
2020-11-10 11:03:54 +00:00
Daniel Lockyer
361d79a8ef
Added CI workflow for testing migrations
...
- initializes the DB, rolls back to v3.0 and then forward to the latest again
2020-11-06 13:33:39 +00:00
Daniel Lockyer
489add6e5e
Pinned Node version in CI
...
- The default Node version on GitHub Actions is moving to Node 14 and we
want to keep building it on 12 for now, so this commit pins the
version to 12.18.0
2020-11-02 08:48:05 +00:00
Daniel Lockyer
b8c9ef5033
Added temporary second artifact upload
...
- we're changing the name but need to maintain compatibility until the
new setup is live
2020-10-29 13:18:45 +00:00
Daniel Lockyer
52bac88136
Added Ghost & Ghost-Admin commit hashes into version
...
- this will generate zips with the hashes already included, and avoid
the crazy bash further in the script
2020-10-29 12:08:16 +00:00
Daniel Lockyer
1cc58c1f95
Added GitHub Actions workflow to build the latest code
...
- we want to allow people to download and run the latest code in Ghost
and Ghost-Admin from Ghost-CLI without going through the process of
cloning the repos
- this GitHub Actions will generate a release zip and upload it as an
artifact
- we then have a tool to download the latest artifact, which can be used
in Ghost-CLI
2020-10-28 16:20:42 +00:00
Daniel Lockyer
d28bbc848f
Bumped minimum Node 14 version to latest LTS
...
- 14.15.0 is the latest version of Node 14 LTS
2020-10-28 11:03:02 +00:00
Daniel Lockyer
969b84b355
Extracted code linting test to separate CI job
...
- this was taking over a minute to run (?!), and was running on each
matrix job
- we only need to run it once as changing Node versions shouldn't change
the results
2020-10-28 08:05:50 +00:00
Austin Burdine
c262a6a341
🔥 Added support for Node 14
2020-10-23 12:57:02 +01:00
Daniel Lockyer
8fa9536122
Updated test labelling in GitHub Action workflow
...
- I'm expecting to add other v2 tests soon, so it's good to specify
which v2 we're testing here
2020-08-18 13:10:34 +01:00
Daniel Lockyer
e8081f6691
Pinned Ubuntu version for tests & release workflows
...
- we were using `ubuntu-latest`, which is an alias for 18.04, but there's an
increasingly likely chance that the default becomes 20.04 soon.
- we don't officially support 20.04 yet, so we want to pin to our
supported version until we're ready
2020-08-18 13:08:22 +01:00
Daniel Lockyer
9d70e2b15c
Added 3.* branches to testing
...
no issue
2020-07-06 10:53:49 +01:00
Daniel Lockyer
53f96245e4
Added upgrade from v1 to Ghost-CLI tests
...
no issue
2020-06-30 09:40:30 +01:00
Daniel Lockyer
a0c7068127
Added npm version minor
to Ghost-CLI tests
...
no issue
- migrations in master aren't run in Ghost-CLI tests because the
package.json version is less than the migration versions
- we should be able to artificially bump the package.json so they get
run
2020-06-30 09:40:30 +01:00
Daniel Lockyer
754086c3a5
Re-enabled Slack build notifications
...
no issue
- Switched to using my own implementation because the rest did not meet
our requirements
2020-06-12 09:52:32 +01:00
Daniel Lockyer
c112863e4b
Switched the NPM release and GitHub release around
...
no issue
- this allows us to do announcements when we know everything else is done
2020-06-11 17:37:34 +01:00
Daniel Lockyer
5595408c97
Disabled Slack notifications for now
...
no issue
- the Action we were using was super verbose so get rid of it for now
2020-06-10 08:28:24 +01:00
Daniel Lockyer
980a63ceba
Added Slack notification for broken build
...
no issue
2020-06-09 13:22:05 +01:00
Daniel Lockyer
69b8c8de68
Configured regression tests to always run
...
no issue
2020-06-09 12:45:00 +01:00
Daniel Lockyer
171f7627cd
Removed unused env variables in release workflow
...
no issue
2020-06-03 08:12:54 +01:00
Daniel Lockyer
c2f5ed07d9
Updated release GitHub Action to reflect updates
...
no issue
- checkout v2 now fetches all tags and branches so the extra line is not needed
2020-05-28 17:24:13 +01:00
Daniel Lockyer
6871b96d7d
Updated Ghost-CLI test to use the latest release
...
no issue
2020-05-28 12:59:08 +01:00
Daniel Lockyer
0e1170593c
Enforced proper Node versions in CI
...
no issue
- a recent regression was not caught by CI because we only specify major
versions
- this change will temporarily fail in CI until the fix for the
regression is implemented
2020-05-08 07:44:34 +01:00
Daniel Lockyer
425ba6143e
Enabled FORCE_COLOR for CI tests
...
no issue
2020-04-16 11:01:27 +01:00
Daniel Lockyer
f8a22da490
Enabled Ghost-CLI testing on Renovate branches
...
no issue
2020-04-16 10:57:59 +01:00
Daniel Lockyer
5adbc4aa6a
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
2020-04-16 07:42:31 +01:00
Daniel Lockyer
d8c7f530ce
Enabled Ghost-CLI tests for v2->v3 upgrade
...
no issue
2020-04-15 18:18:44 +01:00
Daniel Lockyer
4cbc453d0e
Added npm login to release GitHub Action
...
no issue
2020-04-07 11:59:18 +01:00
Daniel Lockyer
91054d10a0
Tidied up release GitHub Action
...
no issue
2020-04-07 08:19:17 +01:00
Daniel Lockyer
f79a0b5c73
Removed Sentry GitHub Action in favor of our release Action
...
no issue
2020-04-06 15:08:17 +01:00
Daniel Lockyer
bd1f175a56
Switched release process to built-in Node
...
no issue
2020-04-06 14:34:08 +01:00
Daniel Lockyer
b144a164e5
Updated release Action to run on all tags
2020-04-06 10:49:17 +01:00
Daniel Lockyer
09e8474261
Switched to custom GitHub Action for a release
...
no issue
2020-04-03 13:37:33 +01:00
Daniel Lockyer
5a314636cd
Configured release Action to only run on 3.x tags
...
no issue
2020-04-03 10:39:42 +01:00
Daniel Lockyer
cadba8d9cc
Moved Sentry release notification into main release workflow
...
no issue
2020-04-02 08:50:50 +01:00
Daniel Lockyer
90012c473a
Enabled npm publish during the release process
...
no issue
2020-04-02 08:43:58 +01:00
Daniel Lockyer
02bf8773b9
Automated the release process
...
no issue
2020-04-01 15:17:52 +01:00
Daniel Lockyer
1acbe3e51a
Corrected Sentry organization and project
...
no issue
2020-03-26 14:58:50 +00:00
Daniel Lockyer
2fe0b79f3a
Enabled CI on Renovate branches
...
no issue
- enables CI on Renovate branches
- puts in a check to avoid CI for pull requests from Renovate to stop
double builds
2020-03-25 18:30:11 +00:00
Daniel Lockyer
58aff29938
Switched to native conditional for labels in PRs
...
no issue
- removes the need for an external Action by checking natively
2020-03-25 16:31:58 +00:00
Daniel Lockyer
2c7c975f91
Specified version for GitHub Action dependency
...
no issue
2020-03-25 15:11:59 +00:00
Daniel Lockyer
f054976d4f
Added GitHub Action to notify Sentry of releases
...
no issue
- automates the notification process upon a release published event
2020-03-25 12:21:29 +00:00
Daniel Lockyer
d229cf83a4
Configured CI to only run MySQL container on MySQL tests
...
no issue
- this saves about 50s on the SQLite tests
2020-03-20 11:15:49 +00:00
Daniel Lockyer
453bcc5030
Added all-tests
label to run full test suite on a PR
...
no issue
2020-03-20 10:05:37 +00:00
Daniel Lockyer
2d42e7eaea
Tidied up GitHub Actions workflows
...
no issue
2020-03-17 12:46:03 +00:00
Daniel Lockyer
64f34273a7
Renamed GitHub Actions workflow file
...
no issue
2020-03-17 12:43:54 +00:00
Daniel Lockyer
204efe0158
Fixed MySQL port mapping in CI
...
no issue
- turns out the exposed port is randomly assigned, but this worked for
us so far
- this commit enforces the use of 3306 for the MySQL port
2020-03-16 08:59:07 +00:00
Daniel Lockyer
7b32bf9ca5
Switched tests to GitHub Actions
...
no issue
2020-03-05 09:50:14 +00:00
Daniel Lockyer
f8b85354d3
Combined Ghost-CLI tests into one GitHub Action job
...
no issue
2020-02-19 18:18:00 +00:00
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
Daniel Lockyer
ef551768bb
Switched to GitHub Actions for lint testing
...
no issue
2020-01-29 16:54:41 +00:00
Daniel Lockyer
a7fde48d1d
Added GitHub Action for testing with Ghost-CLI
...
no issue
- this helps prevent issues with Ghost-CLI compatibility
2020-01-29 15:39:21 +00:00