Skip to content

Commit

Permalink
Merge pull request #841 from threefoldtech/development_fix_format_ana…
Browse files Browse the repository at this point in the history
…lyze_workflow

Fix format analyze workflow
  • Loading branch information
zaelgohary authored Jan 9, 2025
2 parents bb0a2fc + a7ab957 commit d7879bc
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 21 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/format_analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,32 @@ on:
branches:
- development


jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: app
steps:
- name: Set up Repository
uses: actions/checkout@v4
- uses: subosito/flutter-action@v2

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.19.0'

- run: cd app && dart pub get

- run: dart format app/lib

- run: dart analyze app/lib

- name: Get dependencies
run: flutter pub get

- name: Init build script
run: ./build.sh --init

- name: Initialize Reflectable
run: dart run build_runner build

- name: Format Dart files
run: dart format lib

- name: Analyze Dart code
run: dart analyze lib
3 changes: 3 additions & 0 deletions app/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ analyzer:
prefer_typing_uninitialized_variables: ignore
use_build_context_synchronously: ignore
include: package:flutter_lints/flutter.yaml
exclude:
- lib/main.reflectable.dart
- test/flagsmith_tests.reflectable.dart

linter:
rules:
Expand Down
4 changes: 2 additions & 2 deletions app/lib/helpers/env_config_local.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import 'package:threebotlogin/helpers/environment.dart';
abstract class EnvConfig {
Environment environment = Environment.Local;

String githash = "githashvalue";
String time = "timevalue";
String githash = 'githashvalue';
String time = 'timevalue';
}
4 changes: 2 additions & 2 deletions app/lib/helpers/env_config_production.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import 'package:threebotlogin/helpers/environment.dart';
abstract class EnvConfig {
Environment environment = Environment.Production;

String githash = "githashvalue";
String time = "timevalue";
String githash = 'githashvalue';
String time = 'timevalue';
}
4 changes: 2 additions & 2 deletions app/lib/helpers/env_config_staging.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import 'package:threebotlogin/helpers/environment.dart';
abstract class EnvConfig {
Environment environment = Environment.Staging;

String githash = "githashvalue";
String time = "timevalue";
String githash = 'githashvalue';
String time = 'timevalue';
}
4 changes: 2 additions & 2 deletions app/lib/helpers/env_config_testing.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import 'package:threebotlogin/helpers/environment.dart';
abstract class EnvConfig {
Environment environment = Environment.Testing;

String githash = "githashvalue";
String time = "timevalue";
String githash = 'githashvalue';
String time = 'timevalue';
}
1 change: 1 addition & 0 deletions app/lib/widgets/council/vote.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'package:threebotlogin/models/wallet.dart';
import 'package:threebotlogin/providers/wallets_provider.dart';
import 'package:threebotlogin/services/tfchain_service.dart';
import 'package:threebotlogin/widgets/custom_dialog.dart';
// ignore: depend_on_referenced_packages
import 'package:polkadart_keyring/polkadart_keyring.dart';

class CouncilVoteDialog extends ConsumerStatefulWidget {
Expand Down
4 changes: 2 additions & 2 deletions app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1661,8 +1661,8 @@ packages:
dependency: "direct main"
description:
path: "packages/tfchain_client"
ref: main
resolved-ref: "07cca7b13403815a8556a28a9437ae451bd0eef2"
ref: development
resolved-ref: a66b92b9947cbc6ce7adf289f4321153ac42b936
url: "https://github.com/threefoldtech/tfgrid-sdk-dart"
source: git
version: "0.1.0"
Expand Down
4 changes: 2 additions & 2 deletions app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ publish_to: "none"
version: 4.0.0+184

environment:
sdk: ">=3.0.0"
sdk: ">=3.4.0"

dependencies:
flutter:
Expand All @@ -19,7 +19,7 @@ dependencies:
tfchain_client:
git:
url: https://github.com/threefoldtech/tfgrid-sdk-dart
ref: main
ref: development
path: packages/tfchain_client
stellar_client:
git:
Expand Down

0 comments on commit d7879bc

Please sign in to comment.