Compare commits
25 Commits
feature/12
...
19f800ff5f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
19f800ff5f | ||
| 5eee9a238d | |||
| bbf031100f | |||
| 5d9e143027 | |||
| 10f3aacf99 | |||
| 8045855f91 | |||
| d4bb0c5698 | |||
|
|
94c510ce67 | ||
| 674e1111d2 | |||
| ec6105e01d | |||
| bfb5debbeb | |||
|
|
7764b65631 | ||
| b5453d9ced | |||
| 6a79b7cad9 | |||
| 4bf39e8bba | |||
| fede08b0a8 | |||
| 78aaebcd42 | |||
| c2bf859f85 | |||
| 8d50cf4b46 | |||
| b763375748 | |||
| 196b939ca7 | |||
| c536656dff | |||
| 9676ff278d | |||
| b53bb597e1 | |||
| 929183109c |
@@ -6,6 +6,7 @@ on:
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
if: false
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
@@ -17,12 +18,12 @@ jobs:
|
||||
|
||||
- name: Install Flutter (wget)
|
||||
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" >> $GITHUB_PATH
|
||||
echo "$(pwd)/flutter/bin" >> $GITEA_PATH
|
||||
|
||||
- name: Get dependencies
|
||||
run: flutter pub get
|
||||
@@ -32,6 +33,7 @@ jobs:
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
if: false
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
@@ -43,7 +45,7 @@ jobs:
|
||||
|
||||
- name: Install Flutter (wget)
|
||||
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"
|
||||
@@ -54,4 +56,86 @@ jobs:
|
||||
run: flutter pub get
|
||||
|
||||
- name: Run tests
|
||||
run: flutter test
|
||||
run: flutter test
|
||||
|
||||
format:
|
||||
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 --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
|
||||
# Set Git safe directory for Flutter path
|
||||
git config --global --add safe.directory "$(pwd)/flutter"
|
||||
# Set Flutter path
|
||||
echo "$(pwd)/flutter/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Get dependencies
|
||||
run: flutter pub get
|
||||
|
||||
- name: Check code format
|
||||
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
|
||||
# Alt: git push https://oauth2:${{ secrets.BOT_TOKEN }}@git.yannick-weigert.de/liquid-development/game-tracker.git HEAD:${{ gitea.head_ref }}
|
||||
else
|
||||
echo "No changes to commit"
|
||||
fi
|
||||
|
||||
- name: Verify format
|
||||
run: flutter analyze lib test
|
||||
|
||||
|
||||
update-version:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Update version
|
||||
uses: https://github.com/stikkyapp/update-pubspec-version@v2
|
||||
with:
|
||||
strategy: 'patch'
|
||||
bump-build: false
|
||||
path: './pubspec.yaml'
|
||||
|
||||
- name: Commit version update
|
||||
run: |
|
||||
git fetch origin ${{ gitea.head_ref }}
|
||||
git checkout ${{ gitea.head_ref }}
|
||||
|
||||
git config --global user.name "Gitea Actions [bot]"
|
||||
git config --global user.email "actions@gitea.com"
|
||||
git add pubspec.yaml
|
||||
git commit -m "Updated version number"
|
||||
git push
|
||||
# Alt: git push https://oauth2:${{ secrets.BOT_TOKEN }}@git.yannick-weigert.de/liquid-development/game-tracker.git HEAD:${{ gitea.head_ref }}
|
||||
|
||||
|
||||
|
||||
@@ -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/buttons/main_menu_button.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:game_tracker/presentation/widgets/top_centered_message.dart';
|
||||
|
||||
class GroupsView extends StatefulWidget {
|
||||
/// A view that displays a list of groups
|
||||
const GroupsView({super.key});
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
name: game_tracker
|
||||
description: "Game Tracking App for Card Games"
|
||||
publish_to: 'none'
|
||||
version: 0.0.7+213
|
||||
version: 0.0.8+214
|
||||
|
||||
environment:
|
||||
sdk: ^3.8.1
|
||||
|
||||
Reference in New Issue
Block a user