[ci] bump actions/checkout to v4 #48
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: Code Linters | |
on: [push, pull_request] | |
jobs: | |
clang-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install clang-format make | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Check Code Formatting | |
run: | | |
make clang-format | |
git status --porcelain | |
git diff --exit-code | |