-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'fix/integration_test' into refactor/remove_host_class
- Loading branch information
Showing
247 changed files
with
1,239 additions
and
6,414 deletions.
There are no files selected for viewing
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,20 +10,54 @@ env: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
integration_test: | ||
runs-on: [self-hosted] | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ env.nodeVersion }} | ||
- uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: ${{ env.cmakeVersion }} | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: ${{ env.flutterVersion }} | ||
- run: flutter config --enable-macos-desktop | ||
- run: flutter doctor -v | ||
- name: Run Test | ||
run: npm test | ||
id: test | ||
continue-on-error: true | ||
- name: Upload Snapshots | ||
run: node scripts/upload_snapshots.js | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: integration_snapshots | ||
path: integration_tests/snapshots | ||
- name: Check on failures | ||
if: steps.test.outcome != 'success' | ||
run: exit 1 | ||
plugin_test: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ env.nodeVersion }} | ||
- uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: ${{ env.cmakeVersion }} | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: ${{ env.flutterVersion }} | ||
- run: flutter config --enable-macos-desktop | ||
- run: flutter doctor -v | ||
- name: Run Plugin Test | ||
run: npm run pretest && npm run plugin_test | ||
id: test | ||
continue-on-error: true | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: plugin_snapshots | ||
path: integration_tests/snapshots/plugins | ||
- name: Check on failures | ||
if: steps.test.outcome != 'success' | ||
run: exit 1 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,19 +29,102 @@ jobs: | |
with: | ||
name: linux_binary | ||
path: bridge/build/linux/ | ||
|
||
publishToPubDev: | ||
needs: build_linux_binary | ||
runs-on: [self-hosted, flutter_2.2.0] | ||
build_macos_binary: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "16" | ||
- uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: ${{ env.cmakeVersion }} | ||
- name: NPM INSTALL | ||
run: npm install | ||
- name: Build bridge binary | ||
run: npm run build:bridge:macos:release | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: macos_binary | ||
path: bridge/build/macos/ | ||
build_ios_binary: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "16" | ||
- uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: ${{ env.cmakeVersion }} | ||
- name: NPM INSTALL | ||
run: npm install | ||
- name: Build bridge binary | ||
run: npm run build:bridge:ios:release | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: ios_binary | ||
path: bridge/build/ios/ | ||
build_android_binary: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "16" | ||
- uses: nttld/setup-ndk@v1 | ||
id: setup-ndk | ||
with: | ||
ndk-version: r23c | ||
env: | ||
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} | ||
- uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: ${{ env.cmakeVersion }} | ||
- name: NPM INSTALL | ||
run: npm install | ||
- name: Build bridge binary | ||
run: npm run build:bridge:all:release | ||
run: npm run build:bridge:android:release | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: android_binary | ||
path: bridge/build/android/ | ||
publish: | ||
needs: [build_linux_binary, build_android_binary, build_ios_binary, build_macos_binary] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: ${{ env.flutterVersion }} | ||
- name: NPM INSTALL | ||
run: npm install | ||
- name: Set up nightly version | ||
run: node scripts/set_up_nightly_release.js | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: linux_binary | ||
path: bridge/build/linux/ | ||
- name: Publish to dart.dev | ||
run: cd kraken && flutter pub publish --force | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: ios_binary | ||
path: bridge/build/ios/ | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: macos_binary | ||
path: bridge/build/macos/ | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: android_binary | ||
path: bridge/build/android/ | ||
- name: Prepare distribute binaries | ||
run: node scripts/pre_publish_kraken.js | ||
- name: Publish | ||
uses: k-paxian/dart-package-publisher@master | ||
with: | ||
credentialJson: ${{ secrets.CREDENTIAL_JSON }} | ||
force: true | ||
flutter: true | ||
skipTests: true | ||
relativePath: ./kraken | ||
|
Oops, something went wrong.