14 Commits

Author SHA1 Message Date
liquid-actions[bot]
7764b65631 Auto-format code 2026-01-17 18:52:03 +00:00
b5453d9ced Added fetch
Some checks failed
Pull Request Pipeline / lint (pull_request) Has been skipped
Pull Request Pipeline / test (pull_request) Has been skipped
Pull Request Pipeline / format (pull_request) Failing after 2m16s
2026-01-17 19:49:46 +01:00
6a79b7cad9 Added checkout again
Some checks failed
Pull Request Pipeline / lint (pull_request) Has been skipped
Pull Request Pipeline / test (pull_request) Has been skipped
Pull Request Pipeline / format (pull_request) Failing after 2m12s
2026-01-17 19:46:38 +01:00
4bf39e8bba added formatting error
Some checks failed
Pull Request Pipeline / lint (pull_request) Has been skipped
Pull Request Pipeline / test (pull_request) Has been skipped
Pull Request Pipeline / format (pull_request) Failing after 2m17s
2026-01-17 19:43:34 +01:00
fede08b0a8 added formatting error
All checks were successful
Pull Request Pipeline / lint (pull_request) Has been skipped
Pull Request Pipeline / test (pull_request) Has been skipped
Pull Request Pipeline / format (pull_request) Successful in 2m18s
2026-01-17 19:42:26 +01:00
78aaebcd42 Fixed submodule error
Some checks failed
Pull Request Pipeline / lint (pull_request) Has been skipped
Pull Request Pipeline / test (pull_request) Has been skipped
Pull Request Pipeline / format (pull_request) Failing after 2m12s
2026-01-17 19:39:11 +01:00
c2bf859f85 Removed branch checkout
Some checks failed
Pull Request Pipeline / lint (pull_request) Has been skipped
Pull Request Pipeline / test (pull_request) Has been skipped
Pull Request Pipeline / format (pull_request) Failing after 3m3s
2026-01-17 19:35:54 +01:00
8d50cf4b46 Added branch checkout
Some checks failed
Pull Request Pipeline / test (pull_request) Has been skipped
Pull Request Pipeline / lint (pull_request) Has been skipped
Pull Request Pipeline / format (pull_request) Failing after 2m9s
2026-01-17 19:32:14 +01:00
b763375748 Updated workflow again 2
Some checks failed
Pull Request Pipeline / lint (pull_request) Has been skipped
Pull Request Pipeline / test (pull_request) Has been skipped
Pull Request Pipeline / format (pull_request) Failing after 3m13s
2026-01-17 19:28:19 +01:00
196b939ca7 Updated workflow again
Some checks failed
Pull Request Pipeline / lint (pull_request) Has been skipped
Pull Request Pipeline / test (pull_request) Has been skipped
Pull Request Pipeline / format (pull_request) Has been cancelled
2026-01-17 19:26:24 +01:00
c536656dff Added formatting issue
Some checks failed
Pull Request Pipeline / lint (pull_request) Has been skipped
Pull Request Pipeline / test (pull_request) Has been skipped
Pull Request Pipeline / format (pull_request) Has been cancelled
2026-01-17 19:21:21 +01:00
9676ff278d Updated workflow
Some checks are pending
Pull Request Pipeline / lint (pull_request) Has started running
Pull Request Pipeline / test (pull_request) Waiting to run
Pull Request Pipeline / format (pull_request) Successful in 2m6s
2026-01-17 19:18:03 +01:00
b53bb597e1 Updated formatting
Some checks failed
Pull Request Pipeline / lint (pull_request) Waiting to run
Pull Request Pipeline / test (pull_request) Waiting to run
Pull Request Pipeline / format (pull_request) Has been cancelled
2026-01-17 19:12:52 +01:00
929183109c Updated workflow
Some checks failed
Pull Request Pipeline / lint (pull_request) Waiting to run
Pull Request Pipeline / test (pull_request) Waiting to run
Pull Request Pipeline / format (pull_request) Failing after 1m50s
2026-01-17 19:08:40 +01:00
2 changed files with 56 additions and 8 deletions

View File

@@ -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,24 @@ 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 run: flutter analyze lib test
- name: Format code
if: 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 "liquid-actions[bot]"
git config --global user.email "gitea@liquid-dev.de"
git add lib test
git commit -m "Auto-format code"
git push
else
echo "No changes to commit"
fi

View File

@@ -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});