Skip to content

Commit 89b82fb

Browse files
committed
disable e2e test & enable native tests
1 parent 0fd5be0 commit 89b82fb

File tree

2 files changed

+36
-37
lines changed

2 files changed

+36
-37
lines changed

.github/workflows/flutter_test.yml

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
name: flutter native & integration test
22
on:
3-
# Currently broken, enable after fixing
4-
# workflow_dispatch
5-
# push:
6-
# branches:
7-
# - main
8-
# - release/**
3+
push:
4+
branches:
5+
- main
6+
- release/**
97
pull_request:
108
paths-ignore:
119
- 'file/**'
@@ -80,29 +78,29 @@ jobs:
8078
working-directory: ./flutter/example/android
8179
run: flutter build apk --debug
8280

83-
# - name: launch android emulator & run android native test
84-
# uses: reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b #[email protected]
85-
# with:
86-
# working-directory: ./flutter/example/android
87-
# api-level: 21
88-
# force-avd-creation: false
89-
# emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
90-
# disable-animations: true
91-
# arch: x86_64
92-
# profile: Nexus 6
93-
# script: ./gradlew testDebugUnitTest
94-
95-
# - name: launch android emulator & run android integration test
96-
# uses: reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b #[email protected]
97-
# with:
98-
# working-directory: ./flutter/example
99-
# api-level: 21
100-
# force-avd-creation: false
101-
# emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
102-
# disable-animations: true
103-
# arch: x86_64
104-
# profile: Nexus 6
105-
# script: flutter test integration_test/integration_test.dart --verbose
81+
- name: launch android emulator & run android native test
82+
uses: reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b #[email protected]
83+
with:
84+
working-directory: ./flutter/example/android
85+
api-level: 21
86+
force-avd-creation: false
87+
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
88+
disable-animations: true
89+
arch: x86_64
90+
profile: Nexus 6
91+
script: ./gradlew testDebugUnitTest
92+
93+
- name: launch android emulator & run android integration test
94+
uses: reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b #[email protected]
95+
with:
96+
working-directory: ./flutter/example
97+
api-level: 21
98+
force-avd-creation: false
99+
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
100+
disable-animations: true
101+
arch: x86_64
102+
profile: Nexus 6
103+
script: flutter test integration_test/integration_test.dart --verbose
106104

107105
test-ios:
108106
runs-on: macos-13
@@ -140,11 +138,11 @@ jobs:
140138
echo "SIMULATOR_ID=${simulator_id}" >> "$GITHUB_OUTPUT"
141139
xcrun simctl boot ${simulator_id}
142140
143-
# - name: run ios native test
144-
# working-directory: ./flutter/example/ios
145-
# env:
146-
# SIMULATOR_ID: ${{ steps.sim.outputs.SIMULATOR_ID }}
147-
# run: xcodebuild test -workspace Runner.xcworkspace -scheme Runner -configuration Debug -destination "platform=iOS Simulator,id=$SIMULATOR_ID" -allowProvisioningUpdates CODE_SIGNING_ALLOWED=NO
141+
- name: run ios native test
142+
working-directory: ./flutter/example/ios
143+
env:
144+
SIMULATOR_ID: ${{ steps.sim.outputs.SIMULATOR_ID }}
145+
run: xcodebuild test -workspace Runner.xcworkspace -scheme Runner -configuration Debug -destination "platform=iOS Simulator,id=$SIMULATOR_ID" -allowProvisioningUpdates CODE_SIGNING_ALLOWED=NO
148146

149147
- name: run ios integration test
150148
run: flutter test integration_test/integration_test.dart --verbose

flutter/example/integration_test/integration_test.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import 'package:sentry_flutter_example/main.dart';
1010
import 'package:http/http.dart';
1111

1212
void main() {
13-
const org = 'sentry-sdks';
14-
const slug = 'sentry-flutter';
15-
const authToken = String.fromEnvironment('SENTRY_AUTH_TOKEN');
13+
// const org = 'sentry-sdks';
14+
// const slug = 'sentry-flutter';
15+
// const authToken = String.fromEnvironment('SENTRY_AUTH_TOKEN');
1616
const fakeDsn = 'https://[email protected]/1234567';
1717

1818
TestWidgetsFlutterBinding.ensureInitialized();
@@ -141,6 +141,7 @@ void main() {
141141
await transaction.finish();
142142
});
143143

144+
// Disabled until CI issues are fixed
144145
// group('e2e', () {
145146
// var output = find.byKey(const Key('output'));
146147
// late Fixture fixture;

0 commit comments

Comments
 (0)