chore: enhance CI tests (#3344)
* chore: add swift linter * chore: add clang linters * chore: add kotlin linter * chore(ci): update workflows * chore(ci): clean workflows
This commit is contained in:
31
.github/workflows/check-clang.yml
vendored
Normal file
31
.github/workflows/check-clang.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Check CLang
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '.github/workflows/check-clang.yml'
|
||||
- 'ios/**'
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '.github/workflows/check-clang.yml'
|
||||
- 'ios/**'
|
||||
|
||||
jobs:
|
||||
CLang-Format:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install clang-format
|
||||
run: sudo apt-get install clang-format
|
||||
- name: Check ios clang formatting
|
||||
run: |
|
||||
find ios -type f \( -name "*.h" -o -name "*.cpp" -o -name "*.m" -o -name "*.mm" \) -print0 | while read -d $'\0' file; do
|
||||
clang-format -style=file:./ios/.clang-format -i "$file"
|
||||
done
|
||||
shell: bash
|
||||
- name: Check for changes
|
||||
run: git diff --exit-code HEAD
|
||||
Reference in New Issue
Block a user