Start to update QaterialGallery #137
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: 🎨 Run Linter | |
on: [push] | |
jobs: | |
clang-format: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '🎨')" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: DoozyX/[email protected] | |
name: "Run clang-format" | |
with: | |
source: '.' | |
extensions: 'hpp,cpp' | |
clangFormatVersion: 11 | |
inplace: True | |
- uses: EndBug/add-and-commit@v4 | |
name: "Commit clang-format Change" | |
with: | |
author_name: Clang Robot | |
author_email: [email protected] | |
message: '🎨 Run clang-format' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
js-beautify: | |
needs: clang-format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- 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@v4 | |
name: "Commit js-beautify Change" | |
with: | |
author_name: Beautify Robot | |
author_email: [email protected] | |
message: '🎨 Run js-beautify' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |