mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
# Conflicts: # .github/workflows/ci.yml # lib/models/exercises/comment.g.dart # lib/models/exercises/exercise.g.dart # lib/models/exercises/image.g.dart # lib/models/measurements/measurement_entry.g.dart # lib/models/nutrition/ingredient_weight_unit.g.dart # lib/models/nutrition/log.g.dart # lib/models/workouts/day.g.dart # lib/models/workouts/session.g.dart # lib/models/workouts/workout_plan.g.dart # lib/providers/exercises.dart # pubspec.lock # pubspec.yaml # test/utils.dart # test/workout/gym_mode_screen_test.dart
37 lines
766 B
YAML
37 lines
766 B
YAML
name: Continous Integration
|
|
on:
|
|
push:
|
|
branches: [ pull_request, master ]
|
|
paths:
|
|
- '**.dart'
|
|
pull_request:
|
|
branches: [ pull_request, master ]
|
|
paths:
|
|
- '**.dart'
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Install Flutter
|
|
uses: subosito/flutter-action@v1
|
|
with:
|
|
channel: 'stable'
|
|
flutter-version: '2.5.x'
|
|
|
|
- run: dart --version
|
|
- run: flutter --version
|
|
|
|
- name: Install app dependencies
|
|
run: flutter pub get
|
|
|
|
- name: Test app
|
|
run: flutter test --coverage
|
|
|
|
#- name: Upload coverage to Codecov
|
|
# uses: codecov/codecov-action@v1
|
|
# with:
|
|
# token: ${{ secrets.CODECOV_TOKEN }}
|
|
# file: coverage/lcov.info
|