Skip to content

Commit

Permalink
Merge pull request #1 from KendiJ/workflows
Browse files Browse the repository at this point in the history
workflows
  • Loading branch information
KendiJ authored Oct 6, 2023
2 parents f247302 + a8302b5 commit 469a376
Show file tree
Hide file tree
Showing 5 changed files with 165 additions and 5 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Main branch

on:

push:
branches: [ main ]



jobs:

build:
runs-on: ubuntu-latest
steps:


- name : Checkout Repo
uses: actions/checkout@v2

- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: '12.x'

- name : Setup Flutter
uses: subosito/flutter-action@v1
with:
flutter-version: '3.13.3'

- name: Flutter Pub get
run : |
echo flutter clean
echo flutter pub get
- name : Flutter Analyze
run : flutter analyze

# - name : Run Test
# run : flutter test

# - name : Run Test Coverage
# run : flutter test --coverage

- name : Install lcov
run : sudo apt-get install -y lcov


- name : Upload Coverage To Codecov
uses: codecov/codecov-action@v2
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# files: coverage/lcov.info

- name : Build Apk
run: flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi



58 changes: 58 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Main branch

on:

push:
branches: [ main ]



jobs:

build:
runs-on: ubuntu-latest
steps:


- name : Checkout Repo
uses: actions/checkout@v2

- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: '12.x'

- name : Setup Flutter
uses: subosito/flutter-action@v1
with:
flutter-version: '3.13.3'

- name: Flutter Pub get
run : |
echo flutter clean
echo flutter pub get
- name : Flutter Analyze
run : flutter analyze

# - name : Run Test
# run : flutter test

# - name : Run Test Coverage
# run : flutter test --coverage

- name : Install lcov
run : sudo apt-get install -y lcov


- name : Upload Coverage To Codecov
uses: codecov/codecov-action@v2
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# files: coverage/lcov.info

- name : Build Apk
run: flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi



45 changes: 45 additions & 0 deletions .github/workflows/working_branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: develop branch

on:

push:
branches: [ develop ]



jobs:

build:
runs-on: ubuntu-latest
steps:


- name : Checkout Repo
uses: actions/checkout@v2

- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: '12.x'

- name : Setup Flutter
uses: subosito/flutter-action@v1
with:
flutter-version: '3.13.3'

- name: Flutter Pub get
run : |
echo flutter clean
echo flutter pub get
- name : Flutter Analyze
run : flutter analyze




- name : Build Apk
run: flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi



7 changes: 3 additions & 4 deletions lib/presentation/views/rainy.dart
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ class DaysWeatherView extends StatelessWidget {
padding: const EdgeInsets.all(8.0),
child:
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expanded(
child: Text(
Expand All @@ -140,11 +139,11 @@ class DaysWeatherView extends StatelessWidget {
color: Colors.white,
),
),
Expanded(
child: Text(
const SizedBox(width: 60),
Text(
"${e.temperature} °",
style: const TextStyle(color: Colors.white),
)),
),
],
),
))
Expand Down
2 changes: 1 addition & 1 deletion lib/services/weather_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:location/location.dart';

class WeatherService {
static Future<dynamic> getWeather() async {
final String key = '';
const String key = '';
LocationData location = await Location().getLocation();
}
}

0 comments on commit 469a376

Please sign in to comment.