tests: only run 'make lint' once in CI

Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
Adrian Reber 2020-09-17 17:18:41 +00:00 committed by Andrei Vagin
parent 84215e0355
commit 0def9bc1ff
2 changed files with 13 additions and 2 deletions

13
.github/workflows/lint.yml vendored Normal file
View file

@ -0,0 +1,13 @@
name: Run code linter
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install tools
run: sudo apt-get install -qqy flake8 shellcheck
- name: Run make lint
run: make lint

View file

@ -119,8 +119,6 @@ time make CC="$CC" -j4
./criu/criu -v4 cpuinfo dump || :
./criu/criu -v4 cpuinfo check || :
make lint
# Check that help output fits into 80 columns
WIDTH=$(./criu/criu --help | wc --max-line-length)
if [ "$WIDTH" -gt 80 ]; then