name: CI (Pull Request)
on:
pull_request:
branches:
- main
types:
- opened
- edited
- synchronize
- labeled
- unlabeled
jobs:
check:
name: Check
if: ${{ !contains(github.event.pull_request.title, '[skip build]') }}
uses: VersesTech/github-actions/.github/workflows/rust-check.yaml@main
secrets: inherit
lints:
name: Lints
if: ${{ !contains(github.event.pull_request.title, '[skip build]') }}
uses: VersesTech/github-actions/.github/workflows/rust-lint.yaml@main
secrets: inherit
build-test:
name: Build and test
if: ${{ !contains(github.event.pull_request.title, '[skip build]') }}
uses: VersesTech/github-actions/.github/workflows/rust-build-test.yaml@main
secrets: inherit
maturin:
name: Maturin
if: ${{ !contains(github.event.pull_request.title, '[skip build]') }}
uses: ./.github/workflows/maturin.yaml
secrets: inherit
pr-title-check:
name: Check PR title and body
if: ${{ !contains(github.event.pull_request.title, '[skip build]') }}
runs-on: ubuntu-latest
steps:
- name: title-checker
id: title-checker
uses: agenthunt/conventional-commit-checker-action@v2.0.0
with:
pr-title-regex: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([\w\-\.]+\))?(!)?: ([\w ])+([\s\S]*)'
pr-body-regex: .*