BufferView adding template deduction guides #876
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: Auto-formatter | |
on: | |
pull_request: | |
branches: | |
- master | |
paths: | |
- '**.cpp' | |
- '**.h' | |
workflow_dispatch: | |
jobs: | |
build_and_test: | |
name: Apply clang-format to pull request | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Linux Deps | |
run: | | |
sudo apt update | |
sudo apt -y install clang-format-14 | |
clang-format-14 --version | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Run clang-format | |
run: find . -iname "*.h" -o -iname "*.cpp" | xargs clang-format-14 -style=file -verbose -i | |
- name: Show changes files | |
run: git diff --name-only | |
- name: Commit & Push changes | |
uses: actions-js/push@master | |
with: | |
message: "Apply clang-format" | |
branch: ${{ github.head_ref }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} |