Compare commits
16 Commits
feature/11
...
ec6105e01d
| Author | SHA1 | Date | |
|---|---|---|---|
| ec6105e01d | |||
| bfb5debbeb | |||
|
|
7764b65631 | ||
| b5453d9ced | |||
| 6a79b7cad9 | |||
| 4bf39e8bba | |||
| fede08b0a8 | |||
| 78aaebcd42 | |||
| c2bf859f85 | |||
| 8d50cf4b46 | |||
| b763375748 | |||
| 196b939ca7 | |||
| c536656dff | |||
| 9676ff278d | |||
| b53bb597e1 | |||
| 929183109c |
@@ -6,6 +6,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: false
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -17,7 +18,34 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Flutter (wget)
|
- name: Install Flutter (wget)
|
||||||
run: |
|
run: |
|
||||||
wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.38.2-stable.tar.xz
|
wget --quiet https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.38.2-stable.tar.xz
|
||||||
|
tar xf flutter_linux_3.38.2-stable.tar.xz
|
||||||
|
# Set Git safe directory for Flutter path
|
||||||
|
git config --global --add safe.directory "$(pwd)/flutter"
|
||||||
|
# Set Flutter path
|
||||||
|
echo "$(pwd)/flutter/bin" >> $GITEA_PATH
|
||||||
|
|
||||||
|
- name: Get dependencies
|
||||||
|
run: flutter pub get
|
||||||
|
|
||||||
|
- name: Analyze Formatting
|
||||||
|
run: flutter analyze lib test
|
||||||
|
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: false
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y jq
|
||||||
|
|
||||||
|
- name: Install Flutter (wget)
|
||||||
|
run: |
|
||||||
|
wget --quiet https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.38.2-stable.tar.xz
|
||||||
tar xf flutter_linux_3.38.2-stable.tar.xz
|
tar xf flutter_linux_3.38.2-stable.tar.xz
|
||||||
# Set Git safe directory for Flutter path
|
# Set Git safe directory for Flutter path
|
||||||
git config --global --add safe.directory "$(pwd)/flutter"
|
git config --global --add safe.directory "$(pwd)/flutter"
|
||||||
@@ -27,10 +55,10 @@ jobs:
|
|||||||
- name: Get dependencies
|
- name: Get dependencies
|
||||||
run: flutter pub get
|
run: flutter pub get
|
||||||
|
|
||||||
- name: Analyze Formatting
|
- name: Run tests
|
||||||
run: flutter analyze lib test
|
run: flutter test
|
||||||
|
|
||||||
test:
|
format:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@@ -43,7 +71,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Flutter (wget)
|
- name: Install Flutter (wget)
|
||||||
run: |
|
run: |
|
||||||
wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.38.2-stable.tar.xz
|
wget --progress=dot:giga https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.38.2-stable.tar.xz
|
||||||
tar xf flutter_linux_3.38.2-stable.tar.xz
|
tar xf flutter_linux_3.38.2-stable.tar.xz
|
||||||
# Set Git safe directory for Flutter path
|
# Set Git safe directory for Flutter path
|
||||||
git config --global --add safe.directory "$(pwd)/flutter"
|
git config --global --add safe.directory "$(pwd)/flutter"
|
||||||
@@ -53,5 +81,29 @@ jobs:
|
|||||||
- name: Get dependencies
|
- name: Get dependencies
|
||||||
run: flutter pub get
|
run: flutter pub get
|
||||||
|
|
||||||
- name: Run tests
|
- name: Check code format
|
||||||
run: flutter test
|
id: check_format
|
||||||
|
continue-on-error: true
|
||||||
|
run: flutter analyze lib test
|
||||||
|
|
||||||
|
- name: Format code
|
||||||
|
if: steps.check_format.outcome == 'failure'
|
||||||
|
run: |
|
||||||
|
git fetch origin ${{ gitea.head_ref }}
|
||||||
|
git checkout ${{ gitea.head_ref }}
|
||||||
|
|
||||||
|
dart fix --apply lib
|
||||||
|
dart fix --apply test
|
||||||
|
|
||||||
|
if [ -n "$(git status --porcelain lib test)" ]; then
|
||||||
|
git config --global user.name "Gitea Actions [bot]"
|
||||||
|
git config --global user.email "actions@gitea.com"
|
||||||
|
git add lib test
|
||||||
|
git commit -m "Auto-format code"
|
||||||
|
git push
|
||||||
|
else
|
||||||
|
echo "No changes to commit"
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Verify format
|
||||||
|
run: flutter analyze lib test
|
||||||
|
|||||||
@@ -10,9 +10,10 @@ import 'package:game_tracker/presentation/views/main_menu/group_view/create_grou
|
|||||||
import 'package:game_tracker/presentation/widgets/app_skeleton.dart';
|
import 'package:game_tracker/presentation/widgets/app_skeleton.dart';
|
||||||
import 'package:game_tracker/presentation/widgets/buttons/main_menu_button.dart';
|
import 'package:game_tracker/presentation/widgets/buttons/main_menu_button.dart';
|
||||||
import 'package:game_tracker/presentation/widgets/tiles/group_tile.dart';
|
import 'package:game_tracker/presentation/widgets/tiles/group_tile.dart';
|
||||||
import 'package:game_tracker/presentation/widgets/top_centered_message.dart';
|
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
|
import 'package:game_tracker/presentation/widgets/top_centered_message.dart';
|
||||||
|
|
||||||
class GroupsView extends StatefulWidget {
|
class GroupsView extends StatefulWidget {
|
||||||
/// A view that displays a list of groups
|
/// A view that displays a list of groups
|
||||||
const GroupsView({super.key});
|
const GroupsView({super.key});
|
||||||
|
|||||||
Reference in New Issue
Block a user