mirror of
https://github.com/ben-grande/qusal.git
synced 2025-04-16 05:33:08 -04:00
ci: fix gitlint range
This commit is contained in:
parent
50fc92e172
commit
01ae4f848d
11
.github/workflows/main.yaml
vendored
11
.github/workflows/main.yaml
vendored
@ -8,6 +8,10 @@ name: Lint
|
||||
# yamllint disable-line rule:truthy
|
||||
on: [pull_request, push]
|
||||
|
||||
concurrency:
|
||||
group: ci-${{ github.ref }}-1
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
@ -17,11 +21,16 @@ jobs:
|
||||
- name: Install OS packages
|
||||
# yamllint disable-line rule:line-length
|
||||
run: sudo apt-get install -y python3-dev python3-pip shellcheck reuse
|
||||
# gitlint is available on Debian but Ubuntu has an older version.
|
||||
- name: Install pip packages
|
||||
run: pip3 install salt-lint gitlint
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-python@v3
|
||||
- uses: pre-commit/action@v3.0.0
|
||||
|
||||
# TODO: lint range of commits, not only the latest pushed
|
||||
- name: Gitlint
|
||||
run: pwd; gitlint --debug
|
||||
# yamllint disable-line rule:line-length
|
||||
run: gitlint --debug --commits "${{ github.event.before }}..${{ github.sha }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user