summaryrefslogblamecommitdiffstats
path: root/.github/workflows/lint.yml
blob: 779865bb4df8c0ff63cbe7b2a2aad4c757280a44 (plain) (tree)
1
2
3
4
5
6
7






                




















                                                             
                                                  

                                            


                                                        
name: Lint dnbd3

on:
  push:
    branches:
      - master
  pull_request:

jobs:
  lint:
    name: Lint dnbd3
    runs-on: ubuntu-20.04
    steps:
      - name: Install dnbd3 dependencies
        run: |
          sudo apt-get update -y -qq
          sudo apt-get install -y -qq make \
                                      clang-format \
                                      linux-headers-generic \
                                      libfuse-dev \
                                      libjansson-dev \
                                      rpm
      - name: Checkout dnbd3 repository
        uses: actions/checkout@v2
      - name: Fetch dnbd3 repository tags
        run: git fetch --prune --unshallow
      - name: Configure dnbd3 build
        run: |
          cmake -B ${{ github.workspace }}/build \
                -S ${{ github.workspace }} \
                -D DNBD3_BENCHMARK=ON
      - name: Lint dnbd3 artifacts
        working-directory: ${{ github.workspace }}/build
        run: make lint