CI: make lint-commits part of xlint.sh
* CI will stop whenever a step is failing. * We always want to enforce commit message lint * `xlint` is reporting some false positive for license with " WITH " Let's make the lint-commits part of xlint.sh
This commit is contained in:
parent
7f8e1f56fa
commit
46e6063606
2 changed files with 3 additions and 2 deletions
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
|
@ -22,8 +22,6 @@ jobs:
|
||||||
- run: common/travis/fetch-xbps.sh
|
- run: common/travis/fetch-xbps.sh
|
||||||
- run: common/travis/fetch-xtools.sh
|
- run: common/travis/fetch-xtools.sh
|
||||||
- run: common/travis/xlint.sh
|
- run: common/travis/xlint.sh
|
||||||
# GitHub Action create a merge commit, ignore it
|
|
||||||
- run: common/scripts/lint-commits FETCH_HEAD HEAD^2
|
|
||||||
|
|
||||||
# Build changed packages.
|
# Build changed packages.
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -6,6 +6,9 @@
|
||||||
|
|
||||||
EXITCODE=0
|
EXITCODE=0
|
||||||
read base tip < /tmp/revisions
|
read base tip < /tmp/revisions
|
||||||
|
|
||||||
|
common/scripts/lint-commits $base $tip || EXITCODE=$?
|
||||||
|
|
||||||
for t in $(awk '{ print "srcpkgs/" $0 "/template" }' /tmp/templates); do
|
for t in $(awk '{ print "srcpkgs/" $0 "/template" }' /tmp/templates); do
|
||||||
/bin/echo -e "\x1b[32mLinting $t...\x1b[0m"
|
/bin/echo -e "\x1b[32mLinting $t...\x1b[0m"
|
||||||
xlint "$t" || EXITCODE=$?
|
xlint "$t" || EXITCODE=$?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue