mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-25 09:56:54 +06:00
fdcea06336
PR #13296 changed the name of the `cformat` and `pyformat` commands to `format-c` and `format-py` respectively. This PR updates the documentation and some parts of the CLI to use the new names. Also add documentation for the new `format-text` subcommand, introduced in the same PR.
43 lines
833 B
YAML
43 lines
833 B
YAML
name: PR Lint Format
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'drivers/**'
|
|
- 'lib/arm_atsam/**'
|
|
- 'lib/lib8tion/**'
|
|
- 'lib/python/**'
|
|
- 'platforms/**'
|
|
- 'quantum/**'
|
|
- 'tests/**'
|
|
- 'tmk_core/**'
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
|
|
container: qmkfm/base_container
|
|
|
|
steps:
|
|
- uses: rlespinasse/github-slug-action@v3.x
|
|
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: trilom/file-changes-action@v1.2.4
|
|
id: file_changes
|
|
with:
|
|
output: ' '
|
|
fileOutput: ' '
|
|
|
|
- name: Run qmk format-c and qmk format-python
|
|
shell: 'bash {0}'
|
|
run: |
|
|
qmk format-c --core-only -n $(< ~/files.txt)
|
|
format_c_exit=$?
|
|
qmk format-python -n
|
|
format_python_exit=$?
|
|
|
|
exit $((format_c_exit + format_python_exit))
|