chore: copy bun node_modules after install #323
This file contains hidden or 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: Validate C++ | ||
|
Check failure on line 1 in .github/workflows/lint-cpp.yml
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - ".github/workflows/lint-cpp.yml" | ||
| - "**/*.h" | ||
| - "**/*.hpp" | ||
| - "**/*.cpp" | ||
| - "**/*.c" | ||
| - "**/*.mm" | ||
| paths-ignore: | ||
| - "node_modules" | ||
| - "**/node_modules" | ||
| pull_request: | ||
| paths: | ||
| - ".github/workflows/lint-cpp.yml" | ||
| - "**/*.h" | ||
| - "**/*.hpp" | ||
| - "**/*.cpp" | ||
| - "**/*.c" | ||
| - "**/*.mm" | ||
| paths-ignore: | ||
| - "node_modules" | ||
| - "**/node_modules" | ||
| jobs: | ||
| lint: | ||
| name: Check clang-format | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| path: | ||
| - "package/android/src/main/cpp" | ||
| - "package/cpp" | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: oven-sh/setup-bun@v2 | ||
| - name: Install npm dependencies (bun) | ||
| run: bun install && cp node_modules package/node_modules example/node_modules | ||
| - name: Run clang-format style check | ||
| uses: jidicula/[email protected] | ||
| with: | ||
| clang-format-version: "18" | ||
| check-path: ${{ matrix.path }} | ||