From a8962e68b66bc42793b705557db1e3474ecab765 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 09:51:37 +0100 Subject: [PATCH 01/37] Added first workflow --- .gitea/workflows/pull_request.yaml | 39 ++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .gitea/workflows/pull_request.yaml diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml new file mode 100644 index 0000000..8daedbc --- /dev/null +++ b/.gitea/workflows/pull_request.yaml @@ -0,0 +1,39 @@ +name: Pull Request Pipeline + +on: + pull_request: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set Up Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: 'stable' + channel: 'stable' + + - name: Check Formatting + run: flutter analyze + + test: + runs-on: ubuntu-latest + needs: lint + + steps: + - uses: actions/checkout@v4 + + - name: Set Up Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: 'stable' + channel: 'stable' + + - name: Get dependencies + run: flutter pub get + + - name: Run Tests + run: flutter test \ No newline at end of file From eeec92181a1f6e63350b77c4f1c936d202d4a4c8 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 09:53:54 +0100 Subject: [PATCH 02/37] Added jq installation --- .gitea/workflows/pull_request.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 8daedbc..9985eb8 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -10,6 +10,9 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Install jq + run: sudo apt-get install -y jq + - name: Set Up Flutter uses: subosito/flutter-action@v2 with: From ddc8d93592f715779499b7122c86e41324563022 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 09:56:05 +0100 Subject: [PATCH 03/37] Removed sudo --- .gitea/workflows/pull_request.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 9985eb8..1593c18 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -11,7 +11,7 @@ jobs: uses: actions/checkout@v4 - name: Install jq - run: sudo apt-get install -y jq + run: apt-get install -y jq - name: Set Up Flutter uses: subosito/flutter-action@v2 From 8d91eb37808a41ea865716ab6f10e1a2d104b3c5 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 09:58:03 +0100 Subject: [PATCH 04/37] Added update --- .gitea/workflows/pull_request.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 1593c18..25b7c7e 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -11,7 +11,9 @@ jobs: uses: actions/checkout@v4 - name: Install jq - run: apt-get install -y jq + run: | + apt-get update + apt-get install -y jq - name: Set Up Flutter uses: subosito/flutter-action@v2 From 003835472d107cd578dd4ff486a3767f038f0264 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 10:00:09 +0100 Subject: [PATCH 05/37] Added flutter version again --- .gitea/workflows/pull_request.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 25b7c7e..22869cf 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -18,7 +18,7 @@ jobs: - name: Set Up Flutter uses: subosito/flutter-action@v2 with: - flutter-version: 'stable' + flutter-version: '3.38.2' channel: 'stable' - name: Check Formatting From 6ae39717fdfe4214bfe6383c22433dc46fbdc12c Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 10:02:39 +0100 Subject: [PATCH 06/37] Cleaned flutter cache --- .gitea/workflows/pull_request.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 22869cf..4ac911b 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -14,6 +14,12 @@ jobs: run: | apt-get update apt-get install -y jq + + + - name: Clean Flutter Cache + run: | + rm -rf /opt/hostedtoolcache/flutter + rm -rf ~/flutter - name: Set Up Flutter uses: subosito/flutter-action@v2 From 63d2117a6a40836642801180029aafd4571929b5 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 10:05:55 +0100 Subject: [PATCH 07/37] Tried sth --- .gitea/workflows/pull_request.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 4ac911b..2550dcf 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -21,15 +21,12 @@ jobs: rm -rf /opt/hostedtoolcache/flutter rm -rf ~/flutter - - name: Set Up Flutter - uses: subosito/flutter-action@v2 - with: - flutter-version: '3.38.2' - channel: 'stable' - - name: Check Formatting run: flutter analyze + + + test: runs-on: ubuntu-latest needs: lint From 974f06b6b886ef23846ac890906c77264e6c7566 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 10:06:46 +0100 Subject: [PATCH 08/37] Back again --- .gitea/workflows/pull_request.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 2550dcf..8f8f0d1 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -21,12 +21,17 @@ jobs: rm -rf /opt/hostedtoolcache/flutter rm -rf ~/flutter + - name: Set Up Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: '3.38.2' + channel: 'stable' + - name: Check Formatting run: flutter analyze - test: runs-on: ubuntu-latest needs: lint From 6638c2deee81a4f67402e0b3de48fbc6467677f0 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 10:08:04 +0100 Subject: [PATCH 09/37] Removed cache clearing --- .gitea/workflows/pull_request.yaml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 8f8f0d1..b2027d6 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -14,12 +14,6 @@ jobs: run: | apt-get update apt-get install -y jq - - - - name: Clean Flutter Cache - run: | - rm -rf /opt/hostedtoolcache/flutter - rm -rf ~/flutter - name: Set Up Flutter uses: subosito/flutter-action@v2 From 10e56a7241928f2873e52d271b99d006fbe0362f Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 10:09:15 +0100 Subject: [PATCH 10/37] Downgraded flutter version --- .gitea/workflows/pull_request.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index b2027d6..d209dd2 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -18,8 +18,8 @@ jobs: - name: Set Up Flutter uses: subosito/flutter-action@v2 with: - flutter-version: '3.38.2' channel: 'stable' + flutter-version: '3.22.0' - name: Check Formatting run: flutter analyze From 7cc72015d3705a7e75821fec31bf7c84d5049ae6 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 10:11:22 +0100 Subject: [PATCH 11/37] Upgraded to flutter 3.35.6 --- .gitea/workflows/pull_request.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index d209dd2..867f174 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -19,7 +19,7 @@ jobs: uses: subosito/flutter-action@v2 with: channel: 'stable' - flutter-version: '3.22.0' + flutter-version: '3.35.6' - name: Check Formatting run: flutter analyze From 7123d36cd811a6cabc45e36622c382faa7df6d63 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 10:15:12 +0100 Subject: [PATCH 12/37] Updated flutter installation way --- .gitea/workflows/pull_request.yaml | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 867f174..0b71231 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -15,11 +15,18 @@ jobs: apt-get update apt-get install -y jq - - name: Set Up Flutter - uses: subosito/flutter-action@v2 - with: - channel: 'stable' - flutter-version: '3.35.6' + - name: Install Flutter + run: | + # Flutter SDK herunterladen und entpacken + wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.35.6-stable.tar.xz + tar xf flutter_linux_3.35.6-stable.tar.xz + # Flutter zum PATH hinzufügen + echo "$(pwd)/flutter/bin" >> $GITHUB_PATH + # Flutter Doctor ausführen (optional) + flutter doctor -v + + - name: Get dependencies + run: flutter pub get - name: Check Formatting run: flutter analyze @@ -31,13 +38,19 @@ jobs: needs: lint steps: - - uses: actions/checkout@v4 + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install jq + run: | + apt-get update + apt-get install -y jq - name: Set Up Flutter uses: subosito/flutter-action@v2 with: - flutter-version: 'stable' channel: 'stable' + flutter-version: '3.35.0' - name: Get dependencies run: flutter pub get From 17c14dd2302c32230667b30de1abd668a22c7c98 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 10:19:45 +0100 Subject: [PATCH 13/37] Added container --- .gitea/workflows/pull_request.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 0b71231..a28864a 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -6,6 +6,7 @@ on: jobs: lint: runs-on: ubuntu-latest + container: node:18-bullseye steps: - name: Checkout code uses: actions/checkout@v4 @@ -21,7 +22,7 @@ jobs: wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.35.6-stable.tar.xz tar xf flutter_linux_3.35.6-stable.tar.xz # Flutter zum PATH hinzufügen - echo "$(pwd)/flutter/bin" >> $GITHUB_PATH + echo "$(pwd)/flutter/bin" >> /usr/local/bin # Flutter Doctor ausführen (optional) flutter doctor -v From e108bb41f6b8ffa464bce490c6ac440dcf76d4ba Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 10:22:55 +0100 Subject: [PATCH 14/37] Corrected installation --- .gitea/workflows/pull_request.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index a28864a..62aa58e 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -18,13 +18,12 @@ jobs: - name: Install Flutter run: | - # Flutter SDK herunterladen und entpacken wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.35.6-stable.tar.xz tar xf flutter_linux_3.35.6-stable.tar.xz - # Flutter zum PATH hinzufügen - echo "$(pwd)/flutter/bin" >> /usr/local/bin - # Flutter Doctor ausführen (optional) - flutter doctor -v + # Flutter-Pfad zur PATH-Variable hinzufügen + echo "$(pwd)/flutter/bin" >> $GITHUB_PATH + # Alternativ für Docker/act: + echo "PATH=$(pwd)/flutter/bin:$PATH" >> $GITHUB_ENV - name: Get dependencies run: flutter pub get From e852a4d53976fe0a6a051dfd03169ece057d9392 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 10:26:34 +0100 Subject: [PATCH 15/37] Added git safe directory --- .gitea/workflows/pull_request.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 62aa58e..a222eff 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -25,6 +25,12 @@ jobs: # Alternativ für Docker/act: echo "PATH=$(pwd)/flutter/bin:$PATH" >> $GITHUB_ENV + - name: Configure Git Safe Directory + run: | + git config --global --add safe.directory /workspace/liquid-development/game-tracker + git config --global --add safe.directory /workspace/liquid-development/game-tracker/flutter + + - name: Get dependencies run: flutter pub get From 601b7d0a4f654bfc8bff848178560c3ddf169ee8 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 10:36:48 +0100 Subject: [PATCH 16/37] Changed flutter installation --- .gitea/workflows/pull_request.yaml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index a222eff..c8b25e9 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -16,14 +16,11 @@ jobs: apt-get update apt-get install -y jq - - name: Install Flutter - run: | - wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.35.6-stable.tar.xz - tar xf flutter_linux_3.35.6-stable.tar.xz - # Flutter-Pfad zur PATH-Variable hinzufügen - echo "$(pwd)/flutter/bin" >> $GITHUB_PATH - # Alternativ für Docker/act: - echo "PATH=$(pwd)/flutter/bin:$PATH" >> $GITHUB_ENV + - name: Set Up Flutter + uses: flutter-actions/setup-flutter@v2 + with: + flutter-version: '3.35.6' + channel: 'stable' - name: Configure Git Safe Directory run: | From 7ac5986588749d2d55e6eca9225b95900135d088 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 10:41:12 +0100 Subject: [PATCH 17/37] Updated whole workflow --- .gitea/workflows/pull_request.yaml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index c8b25e9..5338cab 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -11,28 +11,29 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Install jq + - name: Install dependencies run: | apt-get update - apt-get install -y jq + apt-get install -y jq git wget unzip xz-utils - - name: Set Up Flutter - uses: flutter-actions/setup-flutter@v2 - with: - flutter-version: '3.35.6' - channel: 'stable' - - - name: Configure Git Safe Directory + - name: Install Flutter (lokal) run: | - git config --global --add safe.directory /workspace/liquid-development/game-tracker - git config --global --add safe.directory /workspace/liquid-development/game-tracker/flutter + 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 + # Git-Safe-Directory für Flutter-Pfad setzen + git config --global --add safe.directory "$(pwd)/flutter" + # Flutter-Pfad setzen + echo "$(pwd)/flutter/bin" >> $GITHUB_PATH + - name: Configure Git Safe Directory (für Projekt) + run: | + git config --global --add safe.directory "$(pwd)" - name: Get dependencies - run: flutter pub get + run: ./flutter/bin/flutter pub get - name: Check Formatting - run: flutter analyze + run: ./flutter/bin/flutter analyze From 6ae1ce9bc71ea90cd231188d315adf2042612bef Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 10:47:14 +0100 Subject: [PATCH 18/37] Updated analyzing --- .gitea/workflows/pull_request.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 5338cab..f44a8f9 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -33,7 +33,7 @@ jobs: run: ./flutter/bin/flutter pub get - name: Check Formatting - run: ./flutter/bin/flutter analyze + run: ./flutter/bin/flutter analyze lib test From 91b68eac3edd02f30b3db38fbee01567b308837b Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 10:50:56 +0100 Subject: [PATCH 19/37] Implemented test workflow --- .gitea/workflows/pull_request.yaml | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index f44a8f9..2dbe146 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -25,9 +25,9 @@ jobs: # Flutter-Pfad setzen echo "$(pwd)/flutter/bin" >> $GITHUB_PATH - - name: Configure Git Safe Directory (für Projekt) - run: | - git config --global --add safe.directory "$(pwd)" + # - name: Configure Git Safe Directory (für Projekt) + # run: | + # git config --global --add safe.directory "$(pwd)" - name: Get dependencies run: ./flutter/bin/flutter pub get @@ -39,25 +39,27 @@ jobs: test: runs-on: ubuntu-latest - needs: lint steps: - name: Checkout code uses: actions/checkout@v4 - - name: Install jq + - name: Install dependencies run: | apt-get update - apt-get install -y jq + apt-get install -y jq git wget unzip xz-utils - - name: Set Up Flutter - uses: subosito/flutter-action@v2 - with: - channel: 'stable' - flutter-version: '3.35.0' + - name: Install Flutter (lokal) + 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 + # Git-Safe-Directory für Flutter-Pfad setzen + git config --global --add safe.directory "$(pwd)/flutter" + # Flutter-Pfad setzen + echo "$(pwd)/flutter/bin" >> $GITHUB_PATH - name: Get dependencies - run: flutter pub get + run: ./flutter/bin/flutter pub get - - name: Run Tests - run: flutter test \ No newline at end of file + - name: Check Formatting + run: ./flutter/bin/flutter test \ No newline at end of file From a3b45053e72108812beaee76feeb0df20eae6d63 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 10:54:58 +0100 Subject: [PATCH 20/37] Finalized workflow --- .gitea/workflows/pull_request.yaml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 2dbe146..1122252 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -11,12 +11,12 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Install dependencies + - name: Install jq run: | apt-get update - apt-get install -y jq git wget unzip xz-utils + apt-get install -y jq - - name: Install Flutter (lokal) + - 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 @@ -25,18 +25,12 @@ jobs: # Flutter-Pfad setzen echo "$(pwd)/flutter/bin" >> $GITHUB_PATH - # - name: Configure Git Safe Directory (für Projekt) - # run: | - # git config --global --add safe.directory "$(pwd)" - - name: Get dependencies run: ./flutter/bin/flutter pub get - - name: Check Formatting + - name: Analyze Formatting run: ./flutter/bin/flutter analyze lib test - - test: runs-on: ubuntu-latest @@ -47,9 +41,9 @@ jobs: - name: Install dependencies run: | apt-get update - apt-get install -y jq git wget unzip xz-utils + apt-get install -y jq - - name: Install Flutter (lokal) + - 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 @@ -61,5 +55,5 @@ jobs: - name: Get dependencies run: ./flutter/bin/flutter pub get - - name: Check Formatting + - name: Run tests run: ./flutter/bin/flutter test \ No newline at end of file From c89243f886d9241fdf26d13b49de2c443e2aafb1 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 10:57:53 +0100 Subject: [PATCH 21/37] Tried sth --- .gitea/workflows/pull_request.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 1122252..187eef9 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -29,7 +29,7 @@ jobs: run: ./flutter/bin/flutter pub get - name: Analyze Formatting - run: ./flutter/bin/flutter analyze lib test + run: flutter analyze lib test test: runs-on: ubuntu-latest @@ -53,7 +53,7 @@ jobs: echo "$(pwd)/flutter/bin" >> $GITHUB_PATH - name: Get dependencies - run: ./flutter/bin/flutter pub get + run: flutter pub get - name: Run tests - run: ./flutter/bin/flutter test \ No newline at end of file + run: flutter test \ No newline at end of file From f136400c7e9bc5e0dde36e9de823a9e665ce6e97 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 11:01:33 +0100 Subject: [PATCH 22/37] Final changes? --- .gitea/workflows/pull_request.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 187eef9..dcc95c1 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -20,13 +20,13 @@ jobs: 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 - # Git-Safe-Directory für Flutter-Pfad setzen + # Set Git safe directory for Flutter path git config --global --add safe.directory "$(pwd)/flutter" - # Flutter-Pfad setzen + # Set Flutter path echo "$(pwd)/flutter/bin" >> $GITHUB_PATH - name: Get dependencies - run: ./flutter/bin/flutter pub get + run: flutter pub get - name: Analyze Formatting run: flutter analyze lib test @@ -47,9 +47,9 @@ jobs: 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 - # Git-Safe-Directory für Flutter-Pfad setzen + # Set Git safe directory for Flutter path git config --global --add safe.directory "$(pwd)/flutter" - # Flutter-Pfad setzen + # Set Flutter path echo "$(pwd)/flutter/bin" >> $GITHUB_PATH - name: Get dependencies From 1732878c7fcb3d64f6ad4c840175ab1737c23bdc Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 11:03:10 +0100 Subject: [PATCH 23/37] Tested sth --- .gitea/workflows/pull_request.yaml | 42 +++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index dcc95c1..6299f66 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -56,4 +56,44 @@ jobs: run: flutter pub get - name: Run tests - run: flutter test \ No newline at end of file + run: flutter test + + format: + 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 & upgrade dependencies + run: | + flutter pub get + flutter pub upgrade --major-versions + + - name: Auto-format + run: | + dart format . + dart fix --apply + + - name: Commit Changes + if: steps.check_changes.outputs.changes_detected == 'true' + run: | + # git config --global user.name "GitHub Actions" + # git config --global user.email "actions@github.com" + git add . + git commit -m "Actions: Auto-formatting [skip ci]" + git push \ No newline at end of file From e5268ebc12d776aaa83f49a8921c86e2d920b388 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 11:03:10 +0100 Subject: [PATCH 24/37] Tested sth --- .gitea/workflows/pull_request.yaml | 42 +++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index dcc95c1..6299f66 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -56,4 +56,44 @@ jobs: run: flutter pub get - name: Run tests - run: flutter test \ No newline at end of file + run: flutter test + + format: + 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 & upgrade dependencies + run: | + flutter pub get + flutter pub upgrade --major-versions + + - name: Auto-format + run: | + dart format . + dart fix --apply + + - name: Commit Changes + if: steps.check_changes.outputs.changes_detected == 'true' + run: | + # git config --global user.name "GitHub Actions" + # git config --global user.email "actions@github.com" + git add . + git commit -m "Actions: Auto-formatting [skip ci]" + git push \ No newline at end of file From 594ea947c2e074236935541e9d5aa67d8b9d11a5 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 11:06:40 +0100 Subject: [PATCH 25/37] Tested sth --- .gitea/workflows/pull_request.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 6299f66..01a3780 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -6,7 +6,6 @@ on: jobs: lint: runs-on: ubuntu-latest - container: node:18-bullseye steps: - name: Checkout code uses: actions/checkout@v4 @@ -33,7 +32,6 @@ jobs: test: runs-on: ubuntu-latest - steps: - name: Checkout code uses: actions/checkout@v4 @@ -60,7 +58,6 @@ jobs: format: runs-on: ubuntu-latest - steps: - name: Checkout code uses: actions/checkout@v4 From 346dddcf62ec7bdd82858ccb256bc6f20d2f3fed Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 11:08:01 +0100 Subject: [PATCH 26/37] testing formatting --- .gitea/workflows/pull_request.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 22e794d..0e075d5 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -86,7 +86,7 @@ jobs: - name: Auto-format run: | dart format . - dart fix --apply + dart fix --apply - name: Commit Changes if: steps.check_changes.outputs.changes_detected == 'true' From dd8af42a472568178efca2103d14ab5b5c20c7e9 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 11:08:30 +0100 Subject: [PATCH 27/37] corrected workflow --- .gitea/workflows/pull_request.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 0e075d5..d30f3fe 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -91,8 +91,6 @@ jobs: - name: Commit Changes if: steps.check_changes.outputs.changes_detected == 'true' run: | - # git config --global user.name "GitHub Actions" - # git config --global user.email "actions@github.com" git add . git commit -m "Actions: Auto-formatting [skip ci]" - git push \ No newline at end of file + git push From 5d8047b3ba4a59e1743e5d4ae5b9315dd792da2c Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 11:12:02 +0100 Subject: [PATCH 28/37] Updated directorys --- .gitea/workflows/pull_request.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index d30f3fe..89bf9df 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -60,6 +60,7 @@ jobs: format: runs-on: ubuntu-latest + if: false # steps: - name: Checkout code uses: actions/checkout@v4 @@ -85,8 +86,8 @@ jobs: - name: Auto-format run: | - dart format . - dart fix --apply + dart format lib test + dart fix --apply lib test - name: Commit Changes if: steps.check_changes.outputs.changes_detected == 'true' From 89d7bb54a1bf16f5da98fe32ff0d0c8cd4d44c25 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 11:12:46 +0100 Subject: [PATCH 29/37] Removed false --- .gitea/workflows/pull_request.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 89bf9df..c4504a6 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -60,7 +60,7 @@ jobs: format: runs-on: ubuntu-latest - if: false # + # if: false # Needs bot user steps: - name: Checkout code uses: actions/checkout@v4 From 81cdeb7ed6a29edda6bb1069d35646f150ccdf8e Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 11:15:30 +0100 Subject: [PATCH 30/37] Skipped other runs for testing --- .gitea/workflows/pull_request.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index c4504a6..1c8e4d3 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -5,6 +5,7 @@ on: jobs: lint: + if: false runs-on: ubuntu-latest container: node:18-bullseye steps: @@ -32,8 +33,8 @@ jobs: run: flutter analyze lib test test: + if: false runs-on: ubuntu-latest - steps: - name: Checkout code uses: actions/checkout@v4 @@ -86,8 +87,8 @@ jobs: - name: Auto-format run: | - dart format lib test - dart fix --apply lib test + dart format lib + dart fix --apply lib - name: Commit Changes if: steps.check_changes.outputs.changes_detected == 'true' From 0659d202b3d90c01c0d3ebe4a58e46b34615a3ac Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 11:18:23 +0100 Subject: [PATCH 31/37] Remove if clause --- .gitea/workflows/pull_request.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 1c8e4d3..7f85a05 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -91,7 +91,6 @@ jobs: dart fix --apply lib - name: Commit Changes - if: steps.check_changes.outputs.changes_detected == 'true' run: | git add . git commit -m "Actions: Auto-formatting [skip ci]" From aade42c0a600a63ac75cbaa548649dcc163d88ce Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 11:21:43 +0100 Subject: [PATCH 32/37] Tried sth --- .gitea/workflows/pull_request.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 7f85a05..58f29e5 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -87,11 +87,13 @@ jobs: - name: Auto-format run: | - dart format lib + dart format lib dart fix --apply lib - name: Commit Changes run: | - git add . + git status + git add lib/ + git status git commit -m "Actions: Auto-formatting [skip ci]" git push From ca4bf03bab19910730ad3bbddffb51fe13596e4c Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 11:27:48 +0100 Subject: [PATCH 33/37] Finalized pull request workflow --- .gitea/workflows/pull_request.yaml | 44 +----------------------------- 1 file changed, 1 insertion(+), 43 deletions(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 58f29e5..43d36d2 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -5,9 +5,7 @@ on: jobs: lint: - if: false runs-on: ubuntu-latest - container: node:18-bullseye steps: - name: Checkout code uses: actions/checkout@v4 @@ -33,7 +31,6 @@ jobs: run: flutter analyze lib test test: - if: false runs-on: ubuntu-latest steps: - name: Checkout code @@ -57,43 +54,4 @@ jobs: run: flutter pub get - name: Run tests - run: flutter test - - 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 - - - name: Commit Changes - run: | - git status - git add lib/ - git status - git commit -m "Actions: Auto-formatting [skip ci]" - git push + run: flutter test \ No newline at end of file From 74fffa95e287cc0b2df5e778fb461fb81ebfd54c Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 11:28:00 +0100 Subject: [PATCH 34/37] Added push workflow (not active) --- .gitea/workflows/push.yaml | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .gitea/workflows/push.yaml diff --git a/.gitea/workflows/push.yaml b/.gitea/workflows/push.yaml new file mode 100644 index 0000000..7a6bb0b --- /dev/null +++ b/.gitea/workflows/push.yaml @@ -0,0 +1,48 @@ +name: Pull Request 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 status + git add lib/ + git status + git commit -m "Actions: Auto-formatting [skip ci]" + git push From 0ac8c2105260328c506cdd39ee18d0301124d1cd Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 11:32:22 +0100 Subject: [PATCH 35/37] Formatted files so that pipeline doesnt fail --- .../views/main_menu/game_history_view.dart | 22 ++++++++--------- .../widgets/double_row_info_tile.dart | 24 +++++++++---------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/lib/presentation/views/main_menu/game_history_view.dart b/lib/presentation/views/main_menu/game_history_view.dart index 3642a88..90cc50a 100644 --- a/lib/presentation/views/main_menu/game_history_view.dart +++ b/lib/presentation/views/main_menu/game_history_view.dart @@ -134,16 +134,16 @@ class _GameHistoryViewState extends State { children: [ Column( children: [ - Container(margin: EdgeInsets.only(bottom: 75)), + Container(margin: const EdgeInsets.only(bottom: 75)), Expanded( child: gameHistoryListView(allGameData, suggestedGameData), ), ], ), 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( - leading: Icon(Icons.search), + leading: const Icon(Icons.search), onChanged: (value) { if (value.isEmpty) { setState(() { @@ -178,16 +178,16 @@ class _GameHistoryViewState extends State { Widget gameHistoryListView(allGameData, suggestedGameData) { if (suggestedGameData.isEmpty && allGameData.isEmpty) { - return TopCenteredMessage( + return const TopCenteredMessage( icon: Icons.info, - title: "Info", - message: "Keine Spiele erstellt", + title: 'Info', + message: 'Keine Spiele erstellt', ); } else if (suggestedGameData.isEmpty) { - return TopCenteredMessage( + return const TopCenteredMessage( icon: Icons.search, - title: "Info", - message: "Kein Spiel mit den Suchparametern gefunden.", + title: 'Info', + message: 'Kein Spiel mit den Suchparametern gefunden.', ); } return ListView.builder( @@ -195,9 +195,9 @@ Widget gameHistoryListView(allGameData, suggestedGameData) { itemBuilder: (context, index) { final currentGame = suggestedGameData[index]; return doubleRowInfoTile( - currentGame['game'] + ": ", + currentGame['game'] + ': ', currentGame['title'], - currentGame['players'].toString() + " Spieler", + "${currentGame['players']} Spieler", currentGame['group'], currentGame['date'], ); diff --git a/lib/presentation/widgets/double_row_info_tile.dart b/lib/presentation/widgets/double_row_info_tile.dart index 621cc74..57404ff 100644 --- a/lib/presentation/widgets/double_row_info_tile.dart +++ b/lib/presentation/widgets/double_row_info_tile.dart @@ -9,8 +9,8 @@ Widget doubleRowInfoTile( String titleLowerRight, ) { return Container( - margin: EdgeInsets.symmetric(vertical: 5, horizontal: 10), - padding: EdgeInsets.all(10), + margin: const EdgeInsets.symmetric(vertical: 5, horizontal: 10), + padding: const EdgeInsets.all(10), decoration: BoxDecoration( borderRadius: BorderRadius.circular(20), color: CustomTheme.secondaryColor, @@ -22,18 +22,18 @@ Widget doubleRowInfoTile( Expanded( flex: 10, child: Text( - "$titleOneUpperLeft $titleTwoUpperLeft", - style: TextStyle(fontSize: 20), + '$titleOneUpperLeft $titleTwoUpperLeft', + style: const TextStyle(fontSize: 20), overflow: TextOverflow.ellipsis, maxLines: 1, ), ), - Spacer(), + const Spacer(), Expanded( flex: 3, child: Text( - "$titleUpperRight", - style: TextStyle(fontSize: 20), + titleUpperRight, + style: const TextStyle(fontSize: 20), overflow: TextOverflow.ellipsis, maxLines: 1, textAlign: TextAlign.end, @@ -46,18 +46,18 @@ Widget doubleRowInfoTile( Expanded( flex: 10, child: Text( - "$titleLowerLeft", - style: TextStyle(fontSize: 20), + titleLowerLeft, + style: const TextStyle(fontSize: 20), overflow: TextOverflow.ellipsis, maxLines: 1, ), ), - Spacer(), + const Spacer(), Expanded( flex: 4, child: Text( - "$titleLowerRight", - style: TextStyle(fontSize: 20), + titleLowerRight, + style: const TextStyle(fontSize: 20), overflow: TextOverflow.ellipsis, maxLines: 1, textAlign: TextAlign.end, From 98b02adc85a8d8958596ff28fa93934d843970e2 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 15:43:49 +0100 Subject: [PATCH 36/37] Formatted files so that pipeline doesnt fail --- .gitea/workflows/push.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/push.yaml b/.gitea/workflows/push.yaml index 7a6bb0b..c5afb83 100644 --- a/.gitea/workflows/push.yaml +++ b/.gitea/workflows/push.yaml @@ -41,7 +41,9 @@ jobs: # Needs credentials, push access and the right files need to be staged - name: Commit Changes run: | - git status + 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]" From b684ebd4f66b54ee378ffdf58a365b3fc30953b2 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 19 Nov 2025 20:25:37 +0100 Subject: [PATCH 37/37] Renamed workflow according to file name --- .gitea/workflows/push.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/push.yaml b/.gitea/workflows/push.yaml index c5afb83..700e96b 100644 --- a/.gitea/workflows/push.yaml +++ b/.gitea/workflows/push.yaml @@ -1,4 +1,4 @@ -name: Pull Request Pipeline +name: Push Pipeline on: push: