42 Commits

Author SHA1 Message Date
17dabb773d Merge branch 'development' into feature/31-json-import-fuer-testdaten
Some checks failed
Pull Request Pipeline / test (pull_request) Failing after 2m4s
Pull Request Pipeline / lint (pull_request) Successful in 2m13s
2025-11-19 20:35:34 +01:00
e14984d4a9 Merge pull request 'Actions aufsetzen' (#38) from setup/17-actions-aufsetzen into development
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 1m59s
Pull Request Pipeline / lint (pull_request) Successful in 2m1s
Reviewed-on: #38
Reviewed-by: mathiskir <mathis.kirchner.mk@gmail.com>
2025-11-19 19:35:07 +00:00
d264b3fa1b Merge branch 'development' into setup/17-actions-aufsetzen
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 1m59s
Pull Request Pipeline / lint (pull_request) Successful in 2m1s
2025-11-19 20:26:39 +01:00
b684ebd4f6 Renamed workflow according to file name 2025-11-19 20:25:37 +01:00
3408930524 Merge remote-tracking branch 'origin/development' into setup/17-actions-aufsetzen
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m3s
Pull Request Pipeline / lint (pull_request) Successful in 2m3s
2025-11-19 19:27:02 +01:00
98b02adc85 Formatted files so that pipeline doesnt fail
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m0s
Pull Request Pipeline / lint (pull_request) Successful in 2m3s
2025-11-19 15:43:49 +01:00
0ac8c21052 Formatted files so that pipeline doesnt fail
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 1m58s
Pull Request Pipeline / lint (pull_request) Successful in 2m1s
2025-11-19 11:32:22 +01:00
74fffa95e2 Added push workflow (not active)
Some checks failed
Pull Request Pipeline / test (pull_request) Successful in 1m58s
Pull Request Pipeline / lint (pull_request) Failing after 2m1s
2025-11-19 11:28:00 +01:00
ca4bf03bab Finalized pull request workflow 2025-11-19 11:27:48 +01:00
aade42c0a6 Tried sth
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 1m54s
2025-11-19 11:21:43 +01:00
0659d202b3 Remove if clause
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 2m42s
2025-11-19 11:18:23 +01:00
81cdeb7ed6 Skipped other runs for testing
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 2m5s
2025-11-19 11:15:30 +01:00
89d7bb54a1 Removed false
Some checks failed
Pull Request Pipeline / format (pull_request) Failing after 1m59s
Pull Request Pipeline / test (pull_request) Successful in 2m6s
Pull Request Pipeline / lint (pull_request) Failing after 2m12s
2025-11-19 11:12:46 +01:00
5d8047b3ba Updated directorys
Some checks failed
Pull Request Pipeline / format (pull_request) Has been skipped
Pull Request Pipeline / test (pull_request) Has been cancelled
Pull Request Pipeline / lint (pull_request) Has been cancelled
2025-11-19 11:12:02 +01:00
dd8af42a47 corrected workflow
Some checks failed
Pull Request Pipeline / format (pull_request) Failing after 2m9s
Pull Request Pipeline / test (pull_request) Successful in 2m10s
Pull Request Pipeline / lint (pull_request) Failing after 2m12s
2025-11-19 11:08:30 +01:00
346dddcf62 testing formatting 2025-11-19 11:08:01 +01:00
9f4fc3a3b0 Merge remote-tracking branch 'origin/setup/17-actions-aufsetzen' into setup/17-actions-aufsetzen
# Conflicts:
#	.gitea/workflows/pull_request.yaml
2025-11-19 11:07:25 +01:00
594ea947c2 Tested sth 2025-11-19 11:06:40 +01:00
e5268ebc12 Tested sth 2025-11-19 11:06:37 +01:00
1732878c7f Tested sth 2025-11-19 11:03:10 +01:00
f136400c7e Final changes?
Some checks failed
Pull Request Pipeline / test (pull_request) Successful in 1m56s
Pull Request Pipeline / lint (pull_request) Failing after 2m1s
2025-11-19 11:01:33 +01:00
c89243f886 Tried sth
Some checks failed
Pull Request Pipeline / test (pull_request) Successful in 1m59s
Pull Request Pipeline / lint (pull_request) Failing after 2m2s
2025-11-19 10:57:53 +01:00
a3b45053e7 Finalized workflow
Some checks failed
Pull Request Pipeline / lint (pull_request) Failing after 2m5s
Pull Request Pipeline / test (pull_request) Successful in 2m6s
2025-11-19 10:54:58 +01:00
91b68eac3e Implemented test workflow
Some checks failed
Pull Request Pipeline / test (pull_request) Successful in 2m2s
Pull Request Pipeline / lint (pull_request) Failing after 2m7s
2025-11-19 10:50:56 +01:00
6ae1ce9bc7 Updated analyzing
Some checks failed
Pull Request Pipeline / lint (pull_request) Failing after 2m1s
Pull Request Pipeline / test (pull_request) Has been skipped
2025-11-19 10:47:14 +01:00
7ac5986588 Updated whole workflow
Some checks failed
Pull Request Pipeline / lint (pull_request) Failing after 3m52s
Pull Request Pipeline / test (pull_request) Has been skipped
2025-11-19 10:41:12 +01:00
601b7d0a4f Changed flutter installation
Some checks failed
Pull Request Pipeline / lint (pull_request) Failing after 2m10s
Pull Request Pipeline / test (pull_request) Has been skipped
2025-11-19 10:36:48 +01:00
e852a4d539 Added git safe directory
Some checks failed
Pull Request Pipeline / lint (pull_request) Failing after 3m47s
Pull Request Pipeline / test (pull_request) Has been skipped
2025-11-19 10:26:34 +01:00
e108bb41f6 Corrected installation
Some checks failed
Pull Request Pipeline / lint (pull_request) Failing after 1m33s
Pull Request Pipeline / test (pull_request) Has been skipped
2025-11-19 10:22:55 +01:00
17c14dd230 Added container
Some checks failed
Pull Request Pipeline / lint (pull_request) Failing after 1m32s
Pull Request Pipeline / test (pull_request) Has been skipped
2025-11-19 10:19:45 +01:00
7123d36cd8 Updated flutter installation way
Some checks failed
Pull Request Pipeline / lint (pull_request) Failing after 1m32s
Pull Request Pipeline / test (pull_request) Has been skipped
2025-11-19 10:15:12 +01:00
7cc72015d3 Upgraded to flutter 3.35.6
Some checks failed
Pull Request Pipeline / lint (pull_request) Failing after 10s
Pull Request Pipeline / test (pull_request) Has been skipped
2025-11-19 10:11:22 +01:00
10e56a7241 Downgraded flutter version
Some checks failed
Pull Request Pipeline / lint (pull_request) Failing after 1m17s
Pull Request Pipeline / test (pull_request) Has been skipped
2025-11-19 10:09:15 +01:00
6638c2deee Removed cache clearing
Some checks failed
Pull Request Pipeline / lint (pull_request) Failing after 10s
Pull Request Pipeline / test (pull_request) Has been skipped
2025-11-19 10:08:04 +01:00
974f06b6b8 Back again
Some checks failed
Pull Request Pipeline / test (pull_request) Has been cancelled
Pull Request Pipeline / lint (pull_request) Has been cancelled
2025-11-19 10:06:46 +01:00
63d2117a6a Tried sth
Some checks failed
Pull Request Pipeline / lint (pull_request) Failing after 6s
Pull Request Pipeline / test (pull_request) Has been skipped
2025-11-19 10:05:55 +01:00
6ae39717fd Cleaned flutter cache
Some checks failed
Pull Request Pipeline / test (pull_request) Has been cancelled
Pull Request Pipeline / lint (pull_request) Has been cancelled
2025-11-19 10:02:39 +01:00
003835472d Added flutter version again
Some checks failed
Pull Request Pipeline / lint (pull_request) Failing after 9s
Pull Request Pipeline / test (pull_request) Has been skipped
2025-11-19 10:00:09 +01:00
8d91eb3780 Added update
Some checks failed
Pull Request Pipeline / lint (pull_request) Failing after 50s
Pull Request Pipeline / test (pull_request) Has been skipped
2025-11-19 09:58:03 +01:00
ddc8d93592 Removed sudo
Some checks failed
Pull Request Pipeline / lint (pull_request) Failing after 47s
Pull Request Pipeline / test (pull_request) Has been skipped
2025-11-19 09:56:05 +01:00
eeec92181a Added jq installation
Some checks failed
Pull Request Pipeline / lint (pull_request) Failing after 47s
Pull Request Pipeline / test (pull_request) Has been skipped
2025-11-19 09:53:54 +01:00
a8962e68b6 Added first workflow
Some checks failed
Pull Request Pipeline / lint (pull_request) Failing after 1m9s
Pull Request Pipeline / test (pull_request) Has been skipped
2025-11-19 09:51:37 +01:00
4 changed files with 130 additions and 23 deletions

View File

@@ -0,0 +1,57 @@
name: Pull Request Pipeline
on:
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install jq
run: |
apt-get update
apt-get install -y jq
- name: Install Flutter (wget)
run: |
wget 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: Analyze Formatting
run: flutter analyze lib test
test:
runs-on: ubuntu-latest
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 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: Run tests
run: flutter test

View File

@@ -0,0 +1,50 @@
name: Push Pipeline
on:
push:
branches:
- "development"
- "main"
jobs:
format:
runs-on: ubuntu-latest
if: false # Needs bot user
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 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 & upgrade dependencies
run: |
flutter pub get
flutter pub upgrade --major-versions
- name: Auto-format
run: |
dart format lib
dart fix --apply lib
# Needs credentials, push access and the right files need to be staged
- name: Commit Changes
run: |
git config --global user.name "Gitea Actions"
git config --global user.email "actions@gitea.com"
git status
git add lib/
git status
git commit -m "Actions: Auto-formatting [skip ci]"
git push

View File

@@ -134,16 +134,16 @@ class _GameHistoryViewState extends State<GameHistoryView> {
children: [ children: [
Column( Column(
children: [ children: [
Container(margin: EdgeInsets.only(bottom: 75)), Container(margin: const EdgeInsets.only(bottom: 75)),
Expanded( Expanded(
child: gameHistoryListView(allGameData, suggestedGameData), child: gameHistoryListView(allGameData, suggestedGameData),
), ),
], ],
), ),
Container( Container(
margin: EdgeInsets.only(top: 10, bottom: 10, left: 10, right: 10), margin: const EdgeInsets.only(top: 10, bottom: 10, left: 10, right: 10),
child: SearchBar( child: SearchBar(
leading: Icon(Icons.search), leading: const Icon(Icons.search),
onChanged: (value) { onChanged: (value) {
if (value.isEmpty) { if (value.isEmpty) {
setState(() { setState(() {
@@ -178,16 +178,16 @@ class _GameHistoryViewState extends State<GameHistoryView> {
Widget gameHistoryListView(allGameData, suggestedGameData) { Widget gameHistoryListView(allGameData, suggestedGameData) {
if (suggestedGameData.isEmpty && allGameData.isEmpty) { if (suggestedGameData.isEmpty && allGameData.isEmpty) {
return TopCenteredMessage( return const TopCenteredMessage(
icon: Icons.info, icon: Icons.info,
title: "Info", title: 'Info',
message: "Keine Spiele erstellt", message: 'Keine Spiele erstellt',
); );
} else if (suggestedGameData.isEmpty) { } else if (suggestedGameData.isEmpty) {
return TopCenteredMessage( return const TopCenteredMessage(
icon: Icons.search, icon: Icons.search,
title: "Info", title: 'Info',
message: "Kein Spiel mit den Suchparametern gefunden.", message: 'Kein Spiel mit den Suchparametern gefunden.',
); );
} }
return ListView.builder( return ListView.builder(
@@ -195,9 +195,9 @@ Widget gameHistoryListView(allGameData, suggestedGameData) {
itemBuilder: (context, index) { itemBuilder: (context, index) {
final currentGame = suggestedGameData[index]; final currentGame = suggestedGameData[index];
return doubleRowInfoTile( return doubleRowInfoTile(
currentGame['game'] + ": ", currentGame['game'] + ': ',
currentGame['title'], currentGame['title'],
currentGame['players'].toString() + " Spieler", "${currentGame['players']} Spieler",
currentGame['group'], currentGame['group'],
currentGame['date'], currentGame['date'],
); );

View File

@@ -9,8 +9,8 @@ Widget doubleRowInfoTile(
String titleLowerRight, String titleLowerRight,
) { ) {
return Container( return Container(
margin: EdgeInsets.symmetric(vertical: 5, horizontal: 10), margin: const EdgeInsets.symmetric(vertical: 5, horizontal: 10),
padding: EdgeInsets.all(10), padding: const EdgeInsets.all(10),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20), borderRadius: BorderRadius.circular(20),
color: CustomTheme.secondaryColor, color: CustomTheme.secondaryColor,
@@ -22,18 +22,18 @@ Widget doubleRowInfoTile(
Expanded( Expanded(
flex: 10, flex: 10,
child: Text( child: Text(
"$titleOneUpperLeft $titleTwoUpperLeft", '$titleOneUpperLeft $titleTwoUpperLeft',
style: TextStyle(fontSize: 20), style: const TextStyle(fontSize: 20),
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
maxLines: 1, maxLines: 1,
), ),
), ),
Spacer(), const Spacer(),
Expanded( Expanded(
flex: 3, flex: 3,
child: Text( child: Text(
"$titleUpperRight", titleUpperRight,
style: TextStyle(fontSize: 20), style: const TextStyle(fontSize: 20),
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
maxLines: 1, maxLines: 1,
textAlign: TextAlign.end, textAlign: TextAlign.end,
@@ -46,18 +46,18 @@ Widget doubleRowInfoTile(
Expanded( Expanded(
flex: 10, flex: 10,
child: Text( child: Text(
"$titleLowerLeft", titleLowerLeft,
style: TextStyle(fontSize: 20), style: const TextStyle(fontSize: 20),
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
maxLines: 1, maxLines: 1,
), ),
), ),
Spacer(), const Spacer(),
Expanded( Expanded(
flex: 4, flex: 4,
child: Text( child: Text(
"$titleLowerRight", titleLowerRight,
style: TextStyle(fontSize: 20), style: const TextStyle(fontSize: 20),
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
maxLines: 1, maxLines: 1,
textAlign: TextAlign.end, textAlign: TextAlign.end,