mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2026-04-08 02:24:18 +00:00
test: add tests for the action
This commit is contained in:
parent
be6d99998b
commit
eac721a186
19 changed files with 4568 additions and 192 deletions
3
fixtures/conventional/commitlint.config.js
Normal file
3
fixtures/conventional/commitlint.config.js
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
module.exports = {
|
||||
extends: ['@commitlint/config-conventional'],
|
||||
}
|
||||
4
fixtures/jira/commitlint.config.js
Normal file
4
fixtures/jira/commitlint.config.js
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
module.exports = {
|
||||
plugins: ['commitlint-plugin-jira-rules'],
|
||||
extends: ['jira'],
|
||||
}
|
||||
4
fixtures/lerna-scopes/commitlint.config.yml
Normal file
4
fixtures/lerna-scopes/commitlint.config.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
extends:
|
||||
- '@commitlint/config-conventional'
|
||||
- '@commitlint/config-lerna-scopes'
|
||||
5
fixtures/lerna-scopes/lerna.json
Normal file
5
fixtures/lerna-scopes/lerna.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"name": "fixture-lerna-scopes",
|
||||
"version": "independent",
|
||||
"packages": ["packages/*"]
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"name": "first-package",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {}
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"name": "second-package",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {}
|
||||
}
|
||||
15
fixtures/payloads/push.json
Normal file
15
fixtures/payloads/push.json
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"after": "cb3c15aee3d0fb546fa1509eef4286e421529e1e",
|
||||
"base_ref": null,
|
||||
"before": "d33e92a269fea31eac29d2dcbe964902cf0aee61",
|
||||
"commits": [],
|
||||
"compare": "https://github.com/wagoid/commitlint-github-action/compare/d33e92a269fe...cb3c15aee3d0",
|
||||
"created": false,
|
||||
"deleted": false,
|
||||
"forced": false,
|
||||
"head_commit": {},
|
||||
"pusher": {},
|
||||
"ref": "refs/heads/master",
|
||||
"repository": {},
|
||||
"sender": {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue