mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Add changelog validation (#10999)
Add changelog validation to CI, ensuring that the changelog follows the KeepAChangelog format. Additionally, this will also ensure that all of the auto-generated "Uncategorized" changelog entries on release branches get categorized.
This commit is contained in:
parent
8ce49d8e7c
commit
efb0d12404
@ -52,6 +52,9 @@ workflows:
|
||||
- test-lint-lockfile:
|
||||
requires:
|
||||
- prep-deps
|
||||
- test-lint-changelog:
|
||||
requires:
|
||||
- prep-deps
|
||||
- test-e2e-chrome:
|
||||
requires:
|
||||
- prep-build-test
|
||||
@ -83,6 +86,7 @@ workflows:
|
||||
- test-lint
|
||||
- test-lint-shellcheck
|
||||
- test-lint-lockfile
|
||||
- test-lint-changelog
|
||||
- test-unit
|
||||
- test-unit-global
|
||||
- validate-source-maps
|
||||
@ -282,6 +286,33 @@ jobs:
|
||||
name: lockfile-lint
|
||||
command: yarn lint:lockfile
|
||||
|
||||
test-lint-changelog:
|
||||
executor: node-browsers
|
||||
steps:
|
||||
- checkout
|
||||
- attach_workspace:
|
||||
at: .
|
||||
- when:
|
||||
condition:
|
||||
not:
|
||||
matches:
|
||||
pattern: /^Version-v(\d+)[.](\d+)[.](\d+)$/
|
||||
value: << pipeline.git.branch >>
|
||||
steps:
|
||||
- run:
|
||||
name: Validate changelog
|
||||
command: yarn auto-changelog validate
|
||||
- when:
|
||||
condition:
|
||||
matches:
|
||||
pattern: /^Version-v(\d+)[.](\d+)[.](\d+)$/
|
||||
value: << pipeline.git.branch >>
|
||||
steps:
|
||||
- run:
|
||||
name: Validate release candidate changelog
|
||||
command: yarn auto-changelog validate --rc
|
||||
|
||||
|
||||
test-deps:
|
||||
executor: node-browsers
|
||||
steps:
|
||||
|
Loading…
Reference in New Issue
Block a user