test(security): Phase 4 audit — test coverage + 11 impl fixes #730
Workflow file for this run
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++' | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/workflows/validate-cpp.yml' | |
| - 'packages/react-native-quick-crypto/android/src/main/cpp/**' | |
| - 'packages/react-native-quick-crypto/cpp/**' | |
| - 'packages/react-native-quick-crypto/nitrogen/generated/shared/**' | |
| pull_request: | |
| paths: | |
| - '.github/workflows/validate-cpp.yml' | |
| - 'packages/react-native-quick-crypto/android/src/main/cpp/**' | |
| - 'packages/react-native-quick-crypto/cpp/**' | |
| - 'packages/react-native-quick-crypto/nitrogen/generated/shared/**' | |
| env: | |
| # Opt actions still on Node 20 (e.g. reviewdog/action-cpplint) into the runner's Node 24. | |
| # Silences deprecation warnings until each action ships a v5. | |
| # https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/ | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true' | |
| jobs: | |
| validate_cpp: | |
| name: C++ Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up clang-format | |
| run: sudo apt-get install -y clang-format | |
| - name: Run clang-format check | |
| run: | | |
| find packages/react-native-quick-crypto/cpp packages/react-native-quick-crypto/android/src/main/cpp \ | |
| -regex '.*\.\(cpp\|hpp\|cc\|cxx\|h\)' \ | |
| -exec clang-format --style=file --dry-run --Werror {} + | |
| - uses: reviewdog/action-cpplint@master | |
| with: | |
| github_token: ${{ secrets.github_token }} | |
| reporter: github-pr-review | |
| flags: --linelength=140 | |
| targets: --recursive packages/react-native-quick-crypto/cpp packages/react-native-quick-crypto/android/src/main/cpp | |
| filter: "-legal/copyright\ | |
| ,-readability/todo\ | |
| ,-build/namespaces\ | |
| ,-whitespace/comments\ | |
| ,-build/include_order\ | |
| ,-whitespace/indent_namespace\ | |
| ,-whitespace/parens\ | |
| ,-build/include_what_you_use\ | |
| " |