Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Add debug build pipeline #103

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/build-debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build Debug

env:
FLUTTER_VERSION: 3.22.2

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
android:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: ${{env.FLUTTER_VERSION}}
- run: flutter pub get
- run: flutter test
- run: flutter build apk --debug

ios:
runs-on: macos-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: ${{env.FLUTTER_VERSION}}
- run: flutter pub get
- run: flutter test
- run: flutter build ios --debug --no-codesign
9 changes: 9 additions & 0 deletions test/gitkeep_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// This is a noop to prevent flutter from failing when no test cases exist.

import 'package:flutter_test/flutter_test.dart';

void main() {
test('Noop test', () {
expect(true, true);
});
}
30 changes: 0 additions & 30 deletions test/widget_test.dart

This file was deleted.