Skip to content

Commit

Permalink
ci(GITHUB): integrate cicd-tools (internal)
Browse files Browse the repository at this point in the history
  • Loading branch information
niall-byrne committed Jun 29, 2023
1 parent 77b028e commit e067c24
Show file tree
Hide file tree
Showing 34 changed files with 506 additions and 1,091 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/job-50-test-precommit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ scenario() {

test_toml_lint_passes() {
util "git_reset"
sed -i.bak "s/python = '^3.9/python = '>=3.10.0,<4.0/g" pyproject.toml
sed -i.bak "s/description = '.*'/description = 'updated description'/g" pyproject.toml
git stage pyproject.toml
git commit -m 'test(PRE-COMMIT): upgrade python without issue'
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "0.1.0",
"description": "Ansible Workbench GitHub Push Workflow Schema",
"additionalProperties": false,
"required": [
"ci_commit_spelling_rev_range",
"ci_commitizen_rev_range",
"ci_concurrency_limit",
"ci_extra_release_content",
"ci_python_versions",
"ci_trufflehog_extra_scan_args",
"ci_verbose_notifications"
],
"type": "object",
"uniqueItems": true,
"properties": {
"ci_commit_spelling_rev_range": {
"description": "This is the fallback commit range for commit spelling checks. This should contain the id of the first correctly spelled commit in this repo, or HEAD for all commits.",
"type": "string"
},
"ci_commitizen_rev_range": {
"description": "This is the fallback commit range for commitizen to lint. This should contain the id of the first linted commit in this repo, or HEAD for all commits.",
"type": "string"
},
"ci_concurrency_limit": {
"description": "This controls the concurrency of each matrix instance in GitHub Actions.",
"type": "number"
},
"ci_extra_release_content": {
"description": "This controls the concurrency of each matrix instance in GitHub Actions.",
"type": "array",
"contains": {
"type": "string"
}
},
"ci_python_versions": {
"description": "This array contains the list of Python versions the workflow steps will execute on.",
"type": "array",
"contains": {
"pattern": "^3\\.[0-9]$",
"type": "string"
}
},
"ci_trufflehog_extra_scan_args": {
"description": "This is a space separated list of extra arguments you can pass to the trufflehog binary.",
"type": "string"
},
"ci_verbose_notifications": {
"description": "This enables success notifications for each job in the GitHub workflows.",
"type": "boolean"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"ci_commitzen_rev_range": "HEAD",
"ci_commit_spelling_rev_range": "HEAD",
"ci_commitizen_rev_range": "HEAD",
"ci_concurrency_limit": 4,
"ci_extra_release_content": [
"## Customizable Text.",
"This message is appended to the changelog of your GitHub release."
],
"ci_python_versions": {{ cookiecutter._GITHUB_CI_DEFAULT_PYTHON_VERSIONS | tojson }},
"ci_trufflehog_extra_scan_args": "",
"ci_verbose_notifications": {{ cookiecutter._GITHUB_CI_DEFAULT_VERBOSE_NOTIFICATIONS | tojson }}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit e067c24

Please sign in to comment.