summaryrefslogtreecommitdiffstats
path: root/.github/workflows/check.yml
blob: dd1f089cb4de7e600c4987a2d18ae78b382a04f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: "Check CloudMQTT"

on:
  push:
    branches: [main, staging, trying, release/*]
  pull_request:
    branches: [main, release/*]

env:
  CARGO_TERM_COLOR: always

jobs:
  license:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4.0.0
      - name: Check License Lines
        uses: kt3k/license_checker@v1.0.6
  dco-check:
    runs-on: ubuntu-latest
    if: github.event_name == 'pull_request'
    steps:
      - uses: actions/checkout@v4.0.0
        with:
          fetch-depth: 0
      - name: Setup Python
        uses: actions/setup-python@v4.7.1
        with:
          python-version: '3.x'
      - name: Install gitlint
        run: pip install gitlint
      - run: gitlint --commits $(git merge-base origin/main HEAD)..