Merge branch 'master' into feature/health-sync

# Conflicts:
#	lib/l10n/app_de.arb
#	lib/l10n/app_es.arb
#	lib/l10n/app_fr.arb
This commit is contained in:
Roland Geider
2026-07-28 22:39:59 +02:00
96 changed files with 4672 additions and 464 deletions

View File

@@ -38,9 +38,6 @@ jobs:
- name: Common flutter setup
uses: ./.github/actions/flutter-common
- name: Install dependencies
run: flutter pub get
- name: Analyze
run: flutter analyze

View File

@@ -86,23 +86,17 @@ jobs:
uses: actions/checkout@v7
with:
repository: wger-project/de.wger.flutter
ssh-key: ${{ secrets.SSH_DEPLOY_KEY }}
- name: Bump version and update manifest
run: |
git clone https://github.com/TheAppgineer/flatpak-flutter.git --branch 0.14.1 ../flatpak-flutter
git clone https://github.com/TheAppgineer/flatpak-flutter.git --branch 0.15.0 ../flatpak-flutter
pip install -r ../flatpak-flutter/requirements.txt
python bump-versions.py ${{ inputs.ref }} ${{ needs.build_linux.outputs.flutter_sdk_version }}
../flatpak-flutter/flatpak-flutter.py --app-module wger flatpak-flutter.yml
- name: Push updated config to flathub repository
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
run: |
mkdir -p ~/.ssh
echo "$SSH_DEPLOY_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan github.com >> ~/.ssh/known_hosts
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git checkout -b release-${{ inputs.ref }}

View File

@@ -20,10 +20,18 @@ on:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Run tests
name: Run tests (shard ${{ matrix.shard }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shard: [0, 1, 2, 3]
env:
TZ: Europe/Berlin
steps:
@@ -32,19 +40,31 @@ jobs:
- name: Common flutter setup
uses: ./.github/actions/flutter-common
- name: Install dependencies
run: |
sudo apt install libsqlite3-dev lcov --no-install-recommends
flutter pub get
- name: Install system dependencies
run: sudo apt install libsqlite3-dev lcov --no-install-recommends
# Removing some folders from the coverage since these files are not really
# part of the app code and just get in the way of the report
- name: Test app
run: |
flutter test --coverage
flutter test --coverage --total-shards 4 --shard-index ${{ matrix.shard }}
lcov --remove coverage/lcov.info 'lib/l10n/generated/*' 'lib/theme/*' -o coverage/lcov.info
- name: Coveralls
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: shard-${{ matrix.shard }}
parallel: true
finish:
name: Finish coverage
needs: test
runs-on: ubuntu-latest
if: ${{ always() }}
steps:
- name: Close parallel Coveralls build
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true