Skip to content

Fix/spread assertion #339

Fix/spread assertion

Fix/spread assertion #339

name: Pull request
# This workflow is triggered on pushes to the repository.
on: [pull_request]
jobs:
style:
name: Style
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install stable toolchain and check style
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.70.0
override: true
components: rustfmt
- run: cargo fmt -- --check
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
with:
submodules: recursive
# A PR should not contain too many commits
fetch-depth: 25
- 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