mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
This workflow is not manually triggered and can create automatically the appropriate tag. The build number is not increase to the next multiple of ten, to stay in sync with the iOS releases, which seem to cause more trouble and often need reuploads. The individual steps have been moved out to their own files, for better readability. We also now build the app for all supported platforms.
40 lines
979 B
YAML
40 lines
979 B
YAML
name: Continous Integration
|
|
on:
|
|
push:
|
|
paths:
|
|
- '**.dart'
|
|
- 'pubspec.yaml'
|
|
pull_request:
|
|
branches: [ master, ]
|
|
paths:
|
|
- '**.dart'
|
|
- 'pubspec.yaml'
|
|
workflow_call: { }
|
|
|
|
jobs:
|
|
test:
|
|
name: Run tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Common flutter setup
|
|
uses: ./.github/actions/flutter-common
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt install libsqlite3-dev lcov
|
|
flutter pub get
|
|
|
|
# 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
|
|
lcov --remove coverage/lcov.info 'lib/l10n/generated/*' 'lib/theme/*' -o coverage/lcov.info
|
|
|
|
- name: Coveralls
|
|
uses: coverallsapp/github-action@v2
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|