Skip to content

feat: Make Nitro itself a Nitro Module #174

feat: Make Nitro itself a Nitro Module

feat: Make Nitro itself a Nitro Module #174

Workflow file for this run

name: Validate C++
on:
push:
branches:
- main
paths:
- '.github/workflows/lint-cpp.yml'
- '**/*.h'
- '**/*.hpp'
- '**/*.cpp'
- '**/*.c'
- '**/*.mm'
pull_request:
paths:
- '.github/workflows/lint-cpp.yml'
- '**/*.h'
- '**/*.hpp'
- '**/*.cpp'
- '**/*.c'
- '**/*.mm'
jobs:
lint:
name: Check clang-format
runs-on: ubuntu-latest
strategy:
matrix:
path:
- 'packages/react-native-nitro-modules/android/src/main/cpp'
- 'packages/react-native-nitro-modules/cpp'
- 'packages/react-native-nitro-modules/ios'
- 'packages/react-native-nitro-image/android/src/main/cpp'
- 'packages/react-native-nitro-image/cpp'
- 'packages/react-native-nitro-image/ios'
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- name: Install npm dependencies (bun)
run: bun install --frozen-lockfile
- name: Run clang-format style check
uses: jidicula/clang-format-action@v4.13.0
with:
clang-format-version: '18'
check-path: ${{ matrix.path }}