diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..43215ce Binary files /dev/null and b/.DS_Store differ diff --git a/.gitea/.DS_Store b/.gitea/.DS_Store new file mode 100644 index 0000000..8077af7 Binary files /dev/null and b/.gitea/.DS_Store differ diff --git a/.gitea/issue_template/bug.yaml b/.gitea/issue_template/bug.yaml new file mode 100644 index 0000000..b7b28d1 --- /dev/null +++ b/.gitea/issue_template/bug.yaml @@ -0,0 +1,53 @@ +name: Bug Report +about: Erstelle eine Bug Report +labels: 'Task/Bug' +title: '' +body: + - type: textarea + id: description + attributes: + label: Beschreibung + description: Beschreibe klar und pregnant das Fehlerverhalten + placeholder: | + - Welchen Zweck erfüllt das Feature? + - Welches Problem löst das Feature? + - Wer profitiert davon? + - Warum ist es wichtig? + validations: + required: true + + - type: textarea + id: reproduce + attributes: + label: Schritte zur Reproduktion + description: Beschreibe, wie der Fehler reproduziert werden kann + placeholder: | + - 1. Schritt 1 + - 2. Schritt 2 + - 3. ... + + - type: dropdown + id: enviroment + attributes: + label: Umgebung + description: Gebe an, auf welchen Platformen dieser Fehler auftritt + list: false + multiple: true + options: ['Android', 'iOS', 'Web'] + + - type: textarea + id: bahaviour + attributes: + label: Unerwünschtes Verhalten + description: Beschreibe, was passiert ist, obwohl es nicht passieren sollte + placeholder: Bei Verhalten X tritt folgendes Verhalten auf ... + + + - type: textarea + attributes: + label: Verwandte Issues + description: Verweise auf ähnliche Issues oder PRs + placeholder: | + - Knüpft an Issue #35 an + - Ersetzt Issue #12 + - Brauch Implementierung von #43 \ No newline at end of file diff --git a/.gitea/issue_template/enhancement.yaml b/.gitea/issue_template/enhancement.yaml new file mode 100644 index 0000000..34c3551 --- /dev/null +++ b/.gitea/issue_template/enhancement.yaml @@ -0,0 +1,36 @@ +name: Enhancement +about: Erstelle ein Enhancement-Ticket +labels: 'Task/Enhancement' +title: '' +body: + - type: textarea + id: description + attributes: + label: Aktuelles Verhalten + description: Beschreibe, wie die Funktionalität aktuell gestaltet ist + placeholder: | + - Aktuell macht Button X folgendes ... + - Das Problem ist, dass ... + validations: + required: true + + - type: textarea + id: solution + attributes: + label: Vorgeschlagene Verbesserung + description: Beschreibe, wie das Problem bzw. die Einschränkung verbessert werden kann + placeholder: | + - Button X ändern, sodass ... + - Funktion X so erweitern, dass ... + - Design anpassen, sodass ... + validations: + required: true + + - type: textarea + attributes: + label: Zugehörige Issues + description: Links zu verwandten oder blockierenden Issues + placeholder: | + - Knüpft an Issue #35 an + - Ersetzt Issue #12 + - Brauch Implementierung von #43 \ No newline at end of file diff --git a/.gitea/issue_template/feature.yaml b/.gitea/issue_template/feature.yaml new file mode 100644 index 0000000..ae3b592 --- /dev/null +++ b/.gitea/issue_template/feature.yaml @@ -0,0 +1,36 @@ +name: Feature +about: Erstelle ein Feature-Ticket +labels: 'Task/Feature' +title: '' +body: + - type: textarea + id: description + attributes: + label: Beschreibung + description: Ausführliche Erläuterung der vorgeschlagenen Funktion + placeholder: | + - Welchen Zweck erfüllt das Feature? + - Welches Problem löst das Feature? + - Wer profitiert davon? + - Warum ist es wichtig? + validations: + required: true + + - type: textarea + id: solution + attributes: + label: Vorgeschlagene Lösung + description: Beschreibe, wie das Feature funktionieren soll + placeholder: | + - Neues Widget, das folgendermaßen aussieht ... + - Neue Ansicht, die folgende Inhalte hat + - Neue Funktionsweise von Komponente XY + + - type: textarea + attributes: + label: Zugehörige Issues + description: Links zu verwandten oder blockierenden Issues + placeholder: | + - Knüpft an Issue #35 an + - Ersetzt Issue #12 + - Brauch Implementierung von #43 \ No newline at end of file diff --git a/pull_request_template.yaml b/.gitea/pull_request_template.yaml similarity index 100% rename from pull_request_template.yaml rename to .gitea/pull_request_template.yaml diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml new file mode 100644 index 0000000..43d36d2 --- /dev/null +++ b/.gitea/workflows/pull_request.yaml @@ -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 \ No newline at end of file diff --git a/.gitea/workflows/push.yaml b/.gitea/workflows/push.yaml new file mode 100644 index 0000000..700e96b --- /dev/null +++ b/.gitea/workflows/push.yaml @@ -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