Add contrib/checkformat.bash to check for clang-formatting (#1646)

This commit is contained in:
Rangi
2025-02-04 10:40:38 +01:00
committed by GitHub
parent 91310c9eb6
commit fbde24ee17
3 changed files with 28 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ jobs:
cd rgbds
git remote add upstream "${{ github.event.pull_request.base.repo.clone_url }}"
git fetch upstream
- name: Checkdiff
- name: Check diff
working-directory: rgbds
run: |
make checkdiff "BASE_REF=${{ github.event.pull_request.base.sha }}" Q= | tee log

12
.github/workflows/checkformat.yml vendored Normal file
View File

@@ -0,0 +1,12 @@
name: Code format checking
on: pull_request
jobs:
checkformat:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Check format
run: |
./contrib/checkformat.bash