From d790cae41a9b3ae797562f07f4f3b236f418a8ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Wed, 6 Jul 2022 09:42:20 +0200 Subject: Add gitlint lint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Müller --- .github/workflows/check.yml | 33 ++++++++++++++++++++++----------- bors.toml | 2 +- 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 -- cgit v1.2.3