fix(harmony): register 10.50+ methods in the RNOH TurboModule glue #278
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: test | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| push: | |
| branches: | |
| - master | |
| # Cancel a currently running workflow from the same PR/branch/tag | |
| # when a new workflow is triggered | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| js-test: | |
| name: JS Unit Tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Install Dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Run Tests | |
| run: bun test src/__tests__ | |
| cpp-test: | |
| name: C++ Unit Tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| submodules: recursive | |
| - name: Install build dependencies | |
| run: sudo apt-get update && sudo apt-get install -y zlib1g-dev libbz2-dev | |
| - name: Build HDiffPatch library | |
| working-directory: android/jni/HDiffPatch | |
| run: make LZMA=0 DIR_DIFF=0 | |
| - name: Build and run unit_test | |
| working-directory: android/jni/HDiffPatch | |
| run: | | |
| g++ -O2 test/unit_test.cpp libhdiffpatch.a \ | |
| -D_IS_NEED_ALL_CompressPlugin=0 \ | |
| -D_IS_NEED_DEFAULT_CompressPlugin=0 \ | |
| -D_IS_NEED_DIR_DIFF_PATCH=0 \ | |
| -lpthread \ | |
| -o unit_test | |
| ./unit_test | |
| # Golden-vector parity between src/updateFlowCore.ts (reference) and | |
| # the cpp/update_flow_core port. The vectors themselves are kept in | |
| # sync with the TS side by src/__tests__/flowVectors.test.ts (js-test). | |
| - name: Replay flow golden vectors against the C++ port | |
| run: SANITIZE=1 ./scripts/test-update-flow-core.sh |