Skip to content

Commit

Permalink
ci: more ci checks
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodie committed Sep 11, 2024
1 parent 1c08c83 commit a90eec6
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Pull request
# This workflow is triggered on pushes to the repository.
on: [ pull_request ]

jobs:
check:
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
18 changes: 18 additions & 0 deletions .github/workflows/semver-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Semver Checks
on:
push:
branches:
- main
pull_request:

jobs:
semver:
name: cargo-semver-checks
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2

- name: check semver
uses: obi1kenobi/[email protected]

0 comments on commit a90eec6

Please sign in to comment.