mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 00:58:31 +00:00
tests: only run 'make lint' once in CI
Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
parent
84215e0355
commit
0def9bc1ff
2 changed files with 13 additions and 2 deletions
13
.github/workflows/lint.yml
vendored
Normal file
13
.github/workflows/lint.yml
vendored
Normal 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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue