Template repository with base configuration.
Included workflows:
- check-pr-fixes-issue - checking if PR description contains phrase "Fixes #issue", and if PR title, description and branch mention the same issue number
- find-unsigned-commits - checking if there are any unsigned commits in PR
- find-trailing-whitespace - checking if there are any trailing whitespaces in files
- check-commit-format - checking if commit message is properly formatted - either starts with "Merge ..." or fullfils template: "#issue_number: short commit description"
- action-git-diff-check - checking if changes introduce conflict markers or whitespace errors
- check-build-matrix - running
ci/build-matrix.pyto verify thatazure.jsonandgithub.jsonmatch the current CI configuration, and failing the check if either generated file is out of date
Check fails if differences appear in the CI log. To fix this, run the script locally and include the updated JSON files in your changes.
# First-time setup
python3 -m venv /tmp/darma-workflows-venv
/tmp/darma-workflows-venv/bin/python -m pip install PyYAML
# Generate both JSON files
/tmp/darma-workflows-venv/bin/python ci/build-matrix.py
# Check for differences
git diff --exit-code -- ci/shared/matrix/azure.json ci/shared/matrix/github.json
# No output -> Both files are up to date
# Differences shown -> The script updated the files, review and include them