dev(ci): use doomemacs/ci commit linter

And move repo-specific linter config into .github/ci.el
This commit is contained in:
Henrik Lissner 2022-05-04 22:41:42 +02:00
parent 0db9014e89
commit 0f6a653a13
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
3 changed files with 40 additions and 18 deletions

5
.github/workflows/lint-commits.yml vendored Normal file
View file

@ -0,0 +1,5 @@
name: Lint commits
on: [push, pull_request]
jobs:
lint-commits:
uses: doomemacs/ci/.github/workflows/lint-commits.yml@legacy

View file

@ -1,18 +0,0 @@
name: Commit linter
on:
pull_request:
jobs:
lint-commits:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}
- uses: purcell/setup-emacs@master
with:
version: 27.2
- uses: actions/checkout@v2.3.1
with:
fetch-depth: 0
- run: bin/doom ci lint-commits ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}