fix method's name to copy_state_from_buffer #154
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: Format | |
on: | |
push: | |
paths-ignore: | |
- ".devcontainer/**" | |
- ".vscode/**" | |
- "doc/**" | |
- "*.md" | |
pull_request: | |
paths-ignore: | |
- ".devcontainer/**" | |
- ".vscode/**" | |
- "doc/**" | |
- "*.md" | |
jobs: | |
check-format: | |
name: Check Format | |
runs-on: "ubuntu-22.04" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup cmake | |
uses: lukka/get-cmake@latest | |
- name: Install Ninja | |
run: sudo apt install ninja-build | |
- name: Configure | |
run: | | |
script/configure | |
- name: Check format | |
run: | | |
ninja -C build format | |
diff=$(git diff) | |
echo -n "$diff" | |
test $(echo -n "$diff" | wc -l) -eq 0 |