Skip to content

Commit 8763aec

Browse files
committed
feat: add more test steps in integration
1 parent 252f291 commit 8763aec

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/integration_test_flutter.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,29 @@ jobs:
3535
with:
3636
name: macos_bridge_binary
3737
path: bridge/build/macos/
38+
39+
bridge_unit_test:
40+
runs-on: macos-latest
41+
needs: [ build_bridge ]
42+
steps:
43+
- uses: actions/checkout@v2
44+
- uses: actions/download-artifact@v2
45+
with:
46+
name: macos_bridge_binary
47+
path: bridge/build/macos/
48+
- run: ./bridge/build/macos/lib/x86_64/kraken_unit_test
49+
50+
kraken_unit_test:
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v2
54+
- uses: subosito/flutter-action@v2
55+
with:
56+
flutter-version: ${{ env.flutterVersion }}
57+
- run: flutter config --enable-macos-desktop
58+
- run: flutter doctor -v
59+
- run: cd kraken && flutter test
60+
3861
integration_test:
3962
runs-on: macos-latest
4063
needs: [ setup, build_bridge ]

scripts/tasks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ task('build-linux-kraken-lib', (done) => {
602602
});
603603

604604
// build
605-
execSync(`cmake --build ${bridgeCmakeDir} --target kraken ${buildMode != 'Release' ? 'kraken_test' : ''} -- -j 12`, {
605+
execSync(`cmake --build ${bridgeCmakeDir} --target kraken ${buildMode != 'Release' ? 'kraken_test kraken_unit_test' : ''} -- -j 12`, {
606606
stdio: 'inherit'
607607
});
608608

0 commit comments

Comments
 (0)