Skip to content

Commit

Permalink
chore: init ci
Browse files Browse the repository at this point in the history
  • Loading branch information
RossComputerGuy committed May 26, 2023
1 parent 5b35f05 commit 8faee04
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 14 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
open_collective: midstall-software
60 changes: 60 additions & 0 deletions .github/workflows/flutter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Flutter
on: push

jobs:
build:
strategy:
matrix:
arch: [x64]
channel: [stable]
target: [linux, windows, macos, android]
os: [ubuntu-latest, windows-latest, macos-latest]
exclude:
- os: ubuntu-latest
target: windows
- os: ubuntu-latest
target: macos
- os: windows-latest
target: linux
- os: windows-latest
target: macos
- os: macos-latest
target: windows
- os: macos-latest
target: linux
- os: windows-latest
target: android
- os: macos-latest
target: android
runs-on: ${{ matrix.os }}
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
cache: true
channel: ${{ matrix.channel }}
architecture: ${{ matrix.arch }}
- if: ${{ matrix.target == 'android' }}
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- if: ${{ matrix.target == 'linux' }}
name: Install host dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev
- run: flutter doctor
- name: Download dependencies
run: flutter pub get
- if: ${{ matrix.target != 'android' }}
name: Build desktop
run: |
flutter config --enable-${{ matrix.target }}-desktop
flutter build ${{ matrix.target }} --dart-define=SENTRY_DSN=${{ secrets.SENTRY_DSN }}
- if: ${{ matrix.target == 'android' }}
name: Build for Android
run: |
flutter build apk --dart-define=SENTRY_DSN=${{ secrets.SENTRY_DSN }}
flutter build appbundle --dart-define=SENTRY_DSN=${{ secrets.SENTRY_DSN }}
3 changes: 1 addition & 2 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions test/widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,5 @@ void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(const FileManagerApp(isSentry: false));

// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);
expect(find.text('1'), findsNothing);

// Tap the '+' icon and trigger a frame.
await tester.tap(find.byIcon(Icons.add));
await tester.pump();

// Verify that our counter has incremented.
expect(find.text('0'), findsNothing);
expect(find.text('1'), findsOneWidget);
});
}

0 comments on commit 8faee04

Please sign in to comment.