Open bliuchak opened 2 months ago
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
@knocte wdyt?
I haven't used GitLab in ages. Hey @bliuchak, shouldn't this test first that the variable CI_MERGE_REQUEST_DIFF_BASE_SHA contains a value? (Because, if it doesn't, then the CI job is being spawned by a push, not a mergeRequest, and then in that case we wouldn't want to fail?)
Description
Add an example for Gitlab CI/CD that shows how to check all commits in merge request.
Also solves this question on Stackoverflow.
Motivation and Context
Current CI/CD guide shows examples how to validate single commit only in Gitlab CI/CD.
Usage examples
How Has This Been Tested?
I've tested this with
-V
on branch with multiple commits (including one non-valid commit).Positive (multiple valid commits):
Negative (multiple commits including one invalid):
Types of changes
Checklist: