Skip to content

Commit

Permalink
ci: check commit message before anything else
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodie committed Nov 22, 2023
1 parent cbf8bff commit fbc03a7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,25 @@ on:
pull_request:

jobs:
check_commit:
name: Check Commit Message
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# A PR should not contain too many commits
fetch-depth: 10
- name: Validate commit messages
run: |
git show-ref
curl -sSfL https://github.com/convco/convco/releases/latest/download/convco-ubuntu.zip | zcat > convco
chmod +x convco
./convco check ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
rm convco
linux_dbus:
name: linux (matrixed)
needs: check_commit
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -47,6 +64,7 @@ jobs:

windows:
name: windows
needs: check_commit
runs-on: windows-latest
strategy:
matrix:
Expand Down Expand Up @@ -78,6 +96,7 @@ jobs:

macos:
name: macos
needs: check_commit
runs-on: macos-latest
strategy:
matrix:
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/pull-request.yml

This file was deleted.

0 comments on commit fbc03a7

Please sign in to comment.