Skip to content

Commit 28c555c

Browse files
authored
Merge pull request #54 from kraken-tech/validate-commits
Use validate-commits to check commits are valid
2 parents f8d1456 + 6a7baa1 commit 28c555c

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,24 @@ jobs:
6767
tox --parallel --parallel-no-spinner --skip-missing-interpreters=false
6868
env:
6969
DATABASE_URL: postgres://postgres:postgres@localhost/django_integrity
70+
71+
validate_commits:
72+
runs-on: ubuntu-22.04
73+
timeout-minutes: 5
74+
75+
# Only check commits on PR branches, where they can be changed.
76+
if: github.event_name == 'pull_request'
77+
78+
steps:
79+
- uses: actions/checkout@v5
80+
with:
81+
ref: ${{ github.head_ref }}
82+
fetch-depth: 0
83+
- run: |
84+
git fetch origin main
85+
git branch main origin/main
86+
- uses: actions/setup-python@v6
87+
with:
88+
python-version: "3.14"
89+
- run: pip install validate_commits
90+
- run: validate-commits

0 commit comments

Comments
 (0)