mirror of
https://github.com/ben-grande/qusal.git
synced 2025-09-24 22:40:10 -04:00
ci: fix gitlint range
This commit is contained in:
parent
50fc92e172
commit
01ae4f848d
1 changed files with 10 additions and 1 deletions
11
.github/workflows/main.yaml
vendored
11
.github/workflows/main.yaml
vendored
|
@ -8,6 +8,10 @@ name: Lint
|
||||||
# yamllint disable-line rule:truthy
|
# yamllint disable-line rule:truthy
|
||||||
on: [pull_request, push]
|
on: [pull_request, push]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ci-${{ github.ref }}-1
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -17,11 +21,16 @@ jobs:
|
||||||
- name: Install OS packages
|
- name: Install OS packages
|
||||||
# yamllint disable-line rule:line-length
|
# yamllint disable-line rule:line-length
|
||||||
run: sudo apt-get install -y python3-dev python3-pip shellcheck reuse
|
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
|
- name: Install pip packages
|
||||||
run: pip3 install salt-lint gitlint
|
run: pip3 install salt-lint gitlint
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@v3
|
- uses: actions/setup-python@v3
|
||||||
- uses: pre-commit/action@v3.0.0
|
- uses: pre-commit/action@v3.0.0
|
||||||
|
|
||||||
|
# TODO: lint range of commits, not only the latest pushed
|
||||||
- name: Gitlint
|
- name: Gitlint
|
||||||
run: pwd; gitlint --debug
|
# yamllint disable-line rule:line-length
|
||||||
|
run: gitlint --debug --commits "${{ github.event.before }}..${{ github.sha }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue