Bump DoozyX/clang-format-lint-action from 0.17 to 0.18 #116
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: Clang Format | |
on: [push, pull_request] | |
jobs: | |
clang-format: | |
runs-on: ubuntu-lastest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: DoozyX/clang-format-lint-action@v0.18 | |
name: "Run clang-format" | |
with: | |
source: './src' | |
extensions: 'hpp,cpp' | |
clangFormatVersion: 16 | |
inplace: True | |
- uses: EndBug/add-and-commit@v9 | |
name: "Commit clang-format Change" | |
with: | |
message: 'Run clang-format' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
js-beautify: | |
needs: clang-format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: "Install js-beautify" | |
run: sudo npm -g install js-beautify | |
- name: "🎨 Run js-beautify" | |
run: find . -regex '.*\.\(qml\|js\)' -exec js-beautify -r {} \; | |
- uses: EndBug/add-and-commit@v9 | |
name: "Commit js-beautify Change" | |
with: | |
message: 'Run js-beautify' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |