summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2022-12-18 10:14:29 +0100
committerMatthias Beyer <mail@beyermatthias.de>2022-12-18 11:13:22 +0100
commitf5af41b12e1c5b4c4edb6fa26fb5a20db38d971a (patch)
treed32d4c57098aba4599c64e7883953eff77fcf331
parentcc6430b71f849a85a24e581b8a335d52fa27d624 (diff)
Outsource commit linting to own workflow
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--.github/workflows/ci.yml15
-rw-r--r--.github/workflows/commit-lint.yml19
2 files changed, 19 insertions, 15 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 69b2508..616d4be 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -39,20 +39,6 @@ jobs:
command: fmt
args: -- --check
- dco-check:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- with:
- fetch-depth: 0
- - name: Setup Python
- uses: actions/setup-python@v4.3.1
- with:
- python-version: '3.x'
- - name: Install gitlint
- run: pip install gitlint
- - run: gitlint --commits $(git merge-base origin/master HEAD)..
-
test:
name: Test Suite
runs-on: ubuntu-latest
@@ -100,7 +86,6 @@ jobs:
needs:
- check
- clippy
- - dco-check
- test
runs-on: ubuntu-latest
steps:
diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml
new file mode 100644
index 0000000..8b151cb
--- /dev/null
+++ b/.github/workflows/commit-lint.yml
@@ -0,0 +1,19 @@
+on: pull_request
+
+name: CI
+
+jobs:
+ commitlint:
+ name: Commit lint
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@master
+ with:
+ fetch-depth: 0
+ - name: Setup Python
+ uses: actions/setup-python@v4.0.0
+ with:
+ python-version: '3.x'
+ - name: Install gitlint
+ run: pip install gitlint
+ - run: gitlint --commits $(git merge-base origin/master HEAD)..