ci: merge workflow jobs and add makefile
This commit is contained in:
parent
7033d52db0
commit
ca2560cae8
12 changed files with 86 additions and 51 deletions
11
.github/pre-push
vendored
Executable file
11
.github/pre-push
vendored
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
IFS=' '
|
||||
while read local_ref _local_sha _remote_ref _remote_sha; do
|
||||
remote_main=$( (git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null || echo "///master") | cut -f 4 -d / | tr -d "[:space:]")
|
||||
local_ref_short=$(echo "$local_ref" | cut -f 3 -d / | tr -d "[:space:]")
|
||||
if [ "$local_ref_short" = "$remote_main" ]; then
|
||||
make lint
|
||||
make test
|
||||
fi
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue