1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +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:
Mark Stacey 2021-05-06 16:25:50 -02:30 committed by GitHub
parent 8ce49d8e7c
commit efb0d12404
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,6 +52,9 @@ workflows:
- test-lint-lockfile: - test-lint-lockfile:
requires: requires:
- prep-deps - prep-deps
- test-lint-changelog:
requires:
- prep-deps
- test-e2e-chrome: - test-e2e-chrome:
requires: requires:
- prep-build-test - prep-build-test
@ -83,6 +86,7 @@ workflows:
- test-lint - test-lint
- test-lint-shellcheck - test-lint-shellcheck
- test-lint-lockfile - test-lint-lockfile
- test-lint-changelog
- test-unit - test-unit
- test-unit-global - test-unit-global
- validate-source-maps - validate-source-maps
@ -282,6 +286,33 @@ jobs:
name: lockfile-lint name: lockfile-lint
command: yarn lint:lockfile 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: test-deps:
executor: node-browsers executor: node-browsers
steps: steps: