summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorGeorge Melikov <[email protected]>2020-08-24 07:15:25 +0300
committerGitHub <[email protected]>2020-08-23 21:15:25 -0700
commita541f7d48595be864fd87865b5bcf051c93a9ef1 (patch)
treea8e6239ab479b26b06d43c2f5dad295e1463f2a1 /.github/workflows
parentc686c6fe759bdf408eab85ebe65c048e04706e43 (diff)
CI checkstyle: add linter + rename job + install latest flake8
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: George Melikov <[email protected]> Closes #10784
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/checkstyle.yaml9
1 files changed, 7 insertions, 2 deletions
diff --git a/.github/workflows/checkstyle.yaml b/.github/workflows/checkstyle.yaml
index b31afe5d2..ded75d593 100644
--- a/.github/workflows/checkstyle.yaml
+++ b/.github/workflows/checkstyle.yaml
@@ -5,7 +5,7 @@ on:
pull_request_target:
jobs:
- deploy:
+ checkstyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@@ -13,11 +13,13 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install dependencies
run: |
+ sudo apt-get update
sudo apt-get install --yes -qq build-essential autoconf libtool gawk alien fakeroot linux-headers-$(uname -r)
sudo apt-get install --yes -qq zlib1g-dev uuid-dev libattr1-dev libblkid-dev libselinux-dev libudev-dev libssl-dev python-dev python-setuptools python-cffi python3 python3-dev python3-setuptools python3-cffi
# packages for tests
sudo apt-get install --yes -qq parted lsscsi ksh attr acl nfs-kernel-server fio
- sudo apt-get install --yes -qq mandoc flake8 # devscripts - enable then bashisms fixed
+ sudo apt-get install --yes -qq mandoc cppcheck pax-utils # devscripts - enable then bashisms fixed
+ sudo -E pip --quiet install flake8
- name: Prepare
run: |
sh ./autogen.sh
@@ -25,3 +27,6 @@ jobs:
- name: Checkstyle
run: |
make checkstyle
+ - name: Lint
+ run: |
+ make lint