🚨(dashboard) improve djlint execution speed #1119
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Chore checks | |
on: | |
push: | |
branches-ignore: ["main"] | |
pull_request: | |
branches-ignore: ["main"] | |
jobs: | |
fixup-commits: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Check absence of fixup commits | |
run: | | |
! git log --pretty=format:%s | grep 'fixup!' | |
check-changelog: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Check that a CHANGELOG has been modified in the current branch | |
run: | | |
git diff --name-only origin/main | grep CHANGELOG | |
lint-changelog: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check API CHANGELOG max line length | |
run: | | |
test $(cat src/api/CHANGELOG.md | grep -Ev "^\[.*\]: https://github.com/MTES-MCT/qualicharge" | wc -L) -le 80 | |
- name: Check client CHANGELOG max line length | |
run: | | |
test $(cat src/client/CHANGELOG.md | grep -Ev "^\[.*\]: https://github.com/MTES-MCT/qualicharge" | wc -L) -le 80 |