summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Müller <neikos@neikos.email>2022-07-06 09:42:20 +0200
committerMarcel Müller <neikos@neikos.email>2022-07-06 10:09:59 +0200
commitd790cae41a9b3ae797562f07f4f3b236f418a8ea (patch)
treeaab3312b9f7abb4fe050d547cb8a11537e3946b8
parent97996594f3a34c613d09a59de98720fea8183da3 (diff)
Add gitlint lint
Signed-off-by: Marcel Müller <neikos@neikos.email>
-rw-r--r--.github/workflows/check.yml33
-rw-r--r--bors.toml2
2 files changed, 23 insertions, 12 deletions
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
index c67bea1..abc6834 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check.yml
@@ -13,16 +13,16 @@ jobs:
checks:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2.4.0
- - uses: cachix/install-nix-action@v16
- with:
- nix_path: nixpkgs=channel:nixos-unstable
- - uses: cachix/cachix-action@v10
- with:
- name: cloudmqtt
- # If you chose API tokens for write access OR if you have a private cache
- authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- - run: nix --extra-experimental-features "nix-command flakes" flake check
+ - uses: actions/checkout@v2.4.0
+ - uses: cachix/install-nix-action@v16
+ with:
+ nix_path: nixpkgs=channel:nixos-unstable
+ - uses: cachix/cachix-action@v10
+ with:
+ name: cloudmqtt
+ # If you chose API tokens for write access OR if you have a private cache
+ authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
+ - run: nix --extra-experimental-features "nix-command flakes" flake check
license:
runs-on: ubuntu-latest
steps:
@@ -30,4 +30,15 @@ jobs:
- name: Check License Lines
uses: kt3k/license_checker@v1.0.6
dco-check:
-
+ 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/main HEAD)..
diff --git a/bors.toml b/bors.toml
index aebb81f..1bbf35b 100644
--- a/bors.toml
+++ b/bors.toml
@@ -1,2 +1,2 @@
-status = ["checks", "license"]
+status = ["checks", "license", "dco-check"]
update_base_for_deletes = true