File tree Expand file tree Collapse file tree 7 files changed +225
-135
lines changed
Expand file tree Collapse file tree 7 files changed +225
-135
lines changed Original file line number Diff line number Diff line change 1+ name : test
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - master
7+ push :
8+ branches :
9+ - master
10+
11+ # Cancel a currently running workflow from the same PR/branch/tag
12+ # when a new workflow is triggered
13+ concurrency :
14+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15+ cancel-in-progress : true
16+
17+ jobs :
18+ js-test :
19+ name : JS Unit Tests
20+ runs-on : ubuntu-latest
21+ timeout-minutes : 5
22+
23+ steps :
24+ - uses : actions/checkout@v6
25+ - uses : oven-sh/setup-bun@v2
26+
27+ - name : Install Dependencies
28+ run : bun install --frozen-lockfile
29+
30+ - name : Run Tests
31+ run : bun test src/__tests__
32+
33+ cpp-test :
34+ name : C++ Unit Tests
35+ runs-on : ubuntu-latest
36+ timeout-minutes : 10
37+
38+ steps :
39+ - uses : actions/checkout@v6
40+ with :
41+ submodules : recursive
42+
43+ - name : Install build dependencies
44+ run : sudo apt-get update && sudo apt-get install -y zlib1g-dev libbz2-dev
45+
46+ - name : Build HDiffPatch library
47+ working-directory : android/jni/HDiffPatch
48+ run : make LZMA=0 DIR_DIFF=0
49+
50+ - name : Build and run unit_test
51+ working-directory : android/jni/HDiffPatch
52+ run : |
53+ g++ -O2 test/unit_test.cpp libhdiffpatch.a \
54+ -D_IS_NEED_ALL_CompressPlugin=0 \
55+ -D_IS_NEED_DEFAULT_CompressPlugin=0 \
56+ -D_IS_NEED_DIR_DIFF_PATCH=0 \
57+ -lpthread \
58+ -o unit_test
59+ ./unit_test
Original file line number Diff line number Diff line change 6161
6262harmony /**
6363! harmony /pushy.har
64+ ! harmony /pushy /hvigor-plugin.ts
6465
6566.tmp
6667.cursor
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import path from 'path';
44export function reactNativeUpdatePlugin ( ) {
55 return {
66 pluginId : 'reactNativeUpdatePlugin' ,
7- apply ( _node ) {
7+ apply ( ) {
88 const cwd = process . cwd ( ) ;
99 const metaFilePath = path . resolve (
1010 cwd ,
You can’t perform that action at this time.
0 commit comments